update readme

This commit is contained in:
bkfox 2016-07-29 14:31:01 +02:00
parent 3bbc364b2f
commit 5329e983a4

View File

@ -30,8 +30,8 @@ Applications:
### settings.py
Base configuration:
```python
INSTALLED_APPS = (
```python
INSTALLED_APPS = (
# dependencies
'wagtail.wagtailforms',
'wagtail.wagtailredirects',
@ -54,15 +54,15 @@ Base configuration:
'aircox.programs',
'aircox.controllers',
'aircox.cms',
)
)
MIDDLEWARE_CLASSES = (
MIDDLEWARE_CLASSES = (
# ...
'wagtail.wagtailcore.middleware.SiteMiddleware',
'wagtail.wagtailredirects.middleware.RedirectMiddleware',
)
)
TEMPLATES = [
TEMPLATES = [
{
# ...
'OPTIONS': {
@ -72,16 +72,16 @@ Base configuration:
),
},
},
]
]
# define your wagtail site name
WAGTAIL_SITE_NAME = 'My Radio'
```
# define your wagtail site name
WAGTAIL_SITE_NAME = 'My Radio'
```
To enable logging:
```python
LOGGING = {
```python
LOGGING = {
# ...
'loggers': {
'aircox.core': {
@ -97,8 +97,8 @@ To enable logging:
'level': os.getenv('DJANGO_LOG_LEVEL', 'INFO'),
},
},
}
```
}
```
Each application have a `settings.py` that defines options that can be reused in application's `settings.py` file.