<filename>config/settings/development.py
# -*- coding: utf-8 -*-
"""
Development settings
- Run in Debug mode
- Use console backend for emails
- Add Django Debug Toolbar
- Add django-extensions as app
"""

print("DEBUG: Loading settings from development")

from .common import *  # noqa

# DEBUG
# ------------------------------------------------------------------------------
# DEBUG = env.bool('DJANGO_DEBUG', default=True)  In Common.py
TEMPLATES[0]['OPTIONS']['debug'] = DEBUG


# Mail settings
# ------------------------------------------------------------------------------

EMAIL_PORT = 1025
EMAIL_HOST = 'localhost'
EMAIL_BACKEND = env('DJANGO_EMAIL_BACKEND',
                    default='django.core.mail.backends.console.EmailBackend')

# CACHING
# ------------------------------------------------------------------------------
CACHES = {
    'default': {
        'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
        'LOCATION': ''
    }
}

# django-debug-toolbar
# ------------------------------------------------------------------------------
# NB: Not presently compatible with Django 1.10 on Py3 - 2016-10-03 - DjDT v1.5
#     https://github.com/jazzband/django-debug-toolbar/issues/853
# MIDDLEWARE += ['debug_toolbar.middleware.DebugToolbarMiddleware',]
# INSTALLED_APPS += ['debug_toolbar', ]

INTERNAL_IPS = ['127.0.0.1', ]
# tricks to have debug toolbar when developing with docker

DEBUG_TOOLBAR_CONFIG = {
    'DISABLE_PANELS': [
        'debug_toolbar.panels.redirects.RedirectsPanel',
    ],
    'SHOW_TEMPLATE_CONTEXT': True,
}

# django-extensions
# ------------------------------------------------------------------------------
INSTALLED_APPS += ['django_extensions', ]

# TESTING
# ------------------------------------------------------------------------------
TEST_RUNNER = 'django.test.runner.DiscoverRunner'

# Your local stuff: Below this line define 3rd party library settings
# ------------------------------------------------------------------------------
<filename>config/settings/development.py
# -*- coding: utf-8 -*-
"""
Development settings
- Run in Debug mode
- Use console backend for emails
- Add Django Debug Toolbar
- Add django-extensions as app
"""

print("DEBUG: Loading settings from development")

from .common import *  # noqa

# DEBUG
# ------------------------------------------------------------------------------
# DEBUG = env.bool('DJANGO_DEBUG', default=True)  In Common.py
TEMPLATES[0]['OPTIONS']['debug'] = DEBUG


# Mail settings
# ------------------------------------------------------------------------------

EMAIL_PORT = 1025
EMAIL_HOST = 'localhost'
EMAIL_BACKEND = env('DJANGO_EMAIL_BACKEND',
                    default='django.core.mail.backends.console.EmailBackend')

# CACHING
# ------------------------------------------------------------------------------
CACHES = {
    'default': {
        'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
        'LOCATION': ''
    }
}

# django-debug-toolbar
# ------------------------------------------------------------------------------
# NB: Not presently compatible with Django 1.10 on Py3 - 2016-10-03 - DjDT v1.5
#     https://github.com/jazzband/django-debug-toolbar/issues/853
# MIDDLEWARE += ['debug_toolbar.middleware.DebugToolbarMiddleware',]
# INSTALLED_APPS += ['debug_toolbar', ]

INTERNAL_IPS = ['127.0.0.1', ]
# tricks to have debug toolbar when developing with docker

DEBUG_TOOLBAR_CONFIG = {
    'DISABLE_PANELS': [
        'debug_toolbar.panels.redirects.RedirectsPanel',
    ],
    'SHOW_TEMPLATE_CONTEXT': True,
}

# django-extensions
# ------------------------------------------------------------------------------
INSTALLED_APPS += ['django_extensions', ]

# TESTING
# ------------------------------------------------------------------------------
TEST_RUNNER = 'django.test.runner.DiscoverRunner'

# Your local stuff: Below this line define 3rd party library settings
# ------------------------------------------------------------------------------
# -*- coding: utf-8 -*- Development settings - Run in Debug mode - Use console backend for emails - Add Django Debug Toolbar - Add django-extensions as app # noqa # DEBUG # ------------------------------------------------------------------------------ # DEBUG = env.bool('DJANGO_DEBUG', default=True)  In Common.py # Mail settings # ------------------------------------------------------------------------------ # CACHING # ------------------------------------------------------------------------------ # django-debug-toolbar # ------------------------------------------------------------------------------ # NB: Not presently compatible with Django 1.10 on Py3 - 2016-10-03 - DjDT v1.5 #     https://github.com/jazzband/django-debug-toolbar/issues/853 # MIDDLEWARE += ['debug_toolbar.middleware.DebugToolbarMiddleware',] # INSTALLED_APPS += ['debug_toolbar', ] # tricks to have debug toolbar when developing with docker # django-extensions # ------------------------------------------------------------------------------ # TESTING # ------------------------------------------------------------------------------ # Your local stuff: Below this line define 3rd party library settings # ------------------------------------------------------------------------------