Files
@ ab300f858903
Branch filter:
Location: majic-django-templates/project/project_name/settings/development.py - annotation
ab300f858903
1.5 KiB
text/x-python
MDT-1: Use better pathfinding for development environment when locating the sqlite3 database. Set a saner default for redirect after login (redirect to 'index' view, whatever it may be).
5723046a01dc 5723046a01dc 5723046a01dc 5723046a01dc 5723046a01dc 5723046a01dc 5723046a01dc 5723046a01dc 5723046a01dc 5723046a01dc 5723046a01dc 5723046a01dc 5723046a01dc 5723046a01dc 5723046a01dc 5723046a01dc 5723046a01dc 5723046a01dc 5723046a01dc 5723046a01dc 5723046a01dc 5723046a01dc 5723046a01dc 5723046a01dc 5723046a01dc 5723046a01dc 5723046a01dc 5723046a01dc 5723046a01dc 5723046a01dc 5723046a01dc 5723046a01dc 5723046a01dc 5723046a01dc 5723046a01dc 5723046a01dc 5723046a01dc 5723046a01dc 5723046a01dc 5723046a01dc 5723046a01dc 5723046a01dc ab300f858903 5723046a01dc 5723046a01dc 5723046a01dc 5723046a01dc 5723046a01dc 5723046a01dc 5723046a01dc 5723046a01dc 5723046a01dc | # Development environment settings for project {{ project_name }}.
#
# This configuration file is used to define settings for the development
# environment.
#
# Import the exception for signaling invalid configuration. No other
# Django-specific definitions should be imported here.
from django.core.exceptions import ImproperlyConfigured
# Import the base settings.
from .base import *
# Import the credentials.
try:
from .credentials import DATABASE_PASSWORDS
except ImportError:
raise ImproperlyConfigured("Please configure the DATABASE_PASSWORDS in credentials.py.")
try:
from .credentials import SECRET_KEY
except ImportError:
raise ImproperlyConfigured("Please configure the SECRET_KEY in credentials.py.")
# Debugging is useful for development.
DEBUG = True
for template_config in TEMPLATES:
template_config['OPTIONS']['debug']=True
# Site administrators and managers.
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
# Database configuration. sqlite3 is used for development for convenience. See
# testing/production environment settings and official Django documentation if a
# proper database should be used.
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(PROJECT_ROOT, 'development.sqlite3'),
}
}
# Hosts that are valid for accessing this site. For development, empty list is
# sufficient.
ALLOWED_HOSTS = []
# Local time zone for development environment.
TIME_ZONE = 'Europe/Stockholm'
|