# 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'