mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-04-26 19:33:45 +03:00
chore(settings/local): add some documentation and formating
This commit is contained in:
parent
815fa26611
commit
cdd0cc3a02
|
@ -2,9 +2,10 @@
|
||||||
'''
|
'''
|
||||||
Local settings
|
Local settings
|
||||||
|
|
||||||
- Runs in Debug mode
|
- Run in Debug mode
|
||||||
- Uses console backend for emails
|
- Use console backend for emails
|
||||||
- Use Django Debug Toolbar
|
- Add Django Debug Toolbar
|
||||||
|
- Add django-extensions as app
|
||||||
'''
|
'''
|
||||||
|
|
||||||
from .common import * # noqa
|
from .common import * # noqa
|
||||||
|
@ -27,7 +28,6 @@ EMAIL_PORT = 1025
|
||||||
EMAIL_BACKEND = env('DJANGO_EMAIL_BACKEND',
|
EMAIL_BACKEND = env('DJANGO_EMAIL_BACKEND',
|
||||||
default='django.core.mail.backends.console.EmailBackend')
|
default='django.core.mail.backends.console.EmailBackend')
|
||||||
|
|
||||||
|
|
||||||
# CACHING
|
# CACHING
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
CACHES = {
|
CACHES = {
|
||||||
|
@ -40,7 +40,7 @@ CACHES = {
|
||||||
# django-debug-toolbar
|
# django-debug-toolbar
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
MIDDLEWARE_CLASSES += ('debug_toolbar.middleware.DebugToolbarMiddleware',)
|
MIDDLEWARE_CLASSES += ('debug_toolbar.middleware.DebugToolbarMiddleware',)
|
||||||
INSTALLED_APPS += ('debug_toolbar', 'django_extensions',)
|
INSTALLED_APPS += ('debug_toolbar', )
|
||||||
|
|
||||||
INTERNAL_IPS = ('127.0.0.1', '10.0.2.2',)
|
INTERNAL_IPS = ('127.0.0.1', '10.0.2.2',)
|
||||||
|
|
||||||
|
@ -51,6 +51,10 @@ DEBUG_TOOLBAR_CONFIG = {
|
||||||
'SHOW_TEMPLATE_CONTEXT': True,
|
'SHOW_TEMPLATE_CONTEXT': True,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# django-extensions
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
INSTALLED_APPS += ('django_extensions', )
|
||||||
|
|
||||||
# TESTING
|
# TESTING
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
TEST_RUNNER = 'django.test.runner.DiscoverRunner'
|
TEST_RUNNER = 'django.test.runner.DiscoverRunner'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user