update readme
This commit is contained in:
parent
3bbc364b2f
commit
5329e983a4
122
README.md
122
README.md
|
@ -30,75 +30,75 @@ 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',
|
||||||
'wagtail.wagtailembeds',
|
'wagtail.wagtailembeds',
|
||||||
'wagtail.wagtailsites',
|
'wagtail.wagtailsites',
|
||||||
'wagtail.wagtailusers',
|
'wagtail.wagtailusers',
|
||||||
'wagtail.wagtailsnippets',
|
'wagtail.wagtailsnippets',
|
||||||
'wagtail.wagtaildocs',
|
'wagtail.wagtaildocs',
|
||||||
'wagtail.wagtailimages',
|
'wagtail.wagtailimages',
|
||||||
'wagtail.wagtailsearch',
|
'wagtail.wagtailsearch',
|
||||||
'wagtail.wagtailadmin',
|
'wagtail.wagtailadmin',
|
||||||
'wagtail.wagtailcore',
|
'wagtail.wagtailcore',
|
||||||
'wagtail.contrib.settings',
|
'wagtail.contrib.settings',
|
||||||
'taggit',
|
'taggit',
|
||||||
'honeypot',
|
'honeypot',
|
||||||
|
|
||||||
|
# ...
|
||||||
|
|
||||||
|
# aircox
|
||||||
|
'aircox.programs',
|
||||||
|
'aircox.controllers',
|
||||||
|
'aircox.cms',
|
||||||
|
)
|
||||||
|
|
||||||
|
MIDDLEWARE_CLASSES = (
|
||||||
|
# ...
|
||||||
|
'wagtail.wagtailcore.middleware.SiteMiddleware',
|
||||||
|
'wagtail.wagtailredirects.middleware.RedirectMiddleware',
|
||||||
|
)
|
||||||
|
|
||||||
|
TEMPLATES = [
|
||||||
|
{
|
||||||
# ...
|
# ...
|
||||||
|
'OPTIONS': {
|
||||||
# aircox
|
'context_processors': (
|
||||||
'aircox.programs',
|
# ...
|
||||||
'aircox.controllers',
|
'wagtail.contrib.settings.context_processors.settings',
|
||||||
'aircox.cms',
|
),
|
||||||
)
|
|
||||||
|
|
||||||
MIDDLEWARE_CLASSES = (
|
|
||||||
# ...
|
|
||||||
'wagtail.wagtailcore.middleware.SiteMiddleware',
|
|
||||||
'wagtail.wagtailredirects.middleware.RedirectMiddleware',
|
|
||||||
)
|
|
||||||
|
|
||||||
TEMPLATES = [
|
|
||||||
{
|
|
||||||
# ...
|
|
||||||
'OPTIONS': {
|
|
||||||
'context_processors': (
|
|
||||||
# ...
|
|
||||||
'wagtail.contrib.settings.context_processors.settings',
|
|
||||||
),
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
]
|
},
|
||||||
|
]
|
||||||
|
|
||||||
# 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': {
|
||||||
'handlers': ['console'],
|
'handlers': ['console'],
|
||||||
'level': os.getenv('DJANGO_LOG_LEVEL', 'INFO'),
|
'level': os.getenv('DJANGO_LOG_LEVEL', 'INFO'),
|
||||||
},
|
|
||||||
'aircox.test': {
|
|
||||||
'handlers': ['console'],
|
|
||||||
'level': os.getenv('DJANGO_LOG_LEVEL', 'INFO'),
|
|
||||||
},
|
|
||||||
'aircox.tools': {
|
|
||||||
'handlers': ['console'],
|
|
||||||
'level': os.getenv('DJANGO_LOG_LEVEL', 'INFO'),
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
}
|
'aircox.test': {
|
||||||
```
|
'handlers': ['console'],
|
||||||
|
'level': os.getenv('DJANGO_LOG_LEVEL', 'INFO'),
|
||||||
|
},
|
||||||
|
'aircox.tools': {
|
||||||
|
'handlers': ['console'],
|
||||||
|
'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.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user