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