Ticket #24624: settings.py

File settings.py, 1.2 KB (added by Scott Sanders, 8 years ago)
Line 
1import os
2BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
3
4SECRET_KEY = 'retardedgenericdevkey'
5DEBUG = True
6
7ALLOWED_HOSTS = []
8
9
10# Application definition
11
12MORE_INSTALLED_APPS = [
13    'debug_toolbar',
14    'django.contrib.admindocs',
15]
16MORE_MIDDLEWARE_CLASSES = []
17
18ROOT_URLCONF = 'chi.dev.urls'
19
20TEMPLATES = [
21    {
22        'BACKEND': 'django.template.backends.django.DjangoTemplates',
23        'DIRS': [
24            os.path.join(BASE_DIR, 'templates'),
25            ],
26        'APP_DIRS': True,
27        'OPTIONS': {
28            'context_processors': [
29                'django.template.context_processors.debug',
30                'django.template.context_processors.request',
31                'django.contrib.auth.context_processors.auth',
32                'django.contrib.messages.context_processors.messages',
33            ],
34        },
35    },
36]
37
38STATICFILES_DIRS = [
39    os.path.join(BASE_DIR, 'dev-static'),
40]
41STATIC_ROOT = os.path.join(BASE_DIR, 'static')
42
43DATABASES = {
44    'default': {
45        'ENGINE': 'django.db.backends.sqlite3',
46        'NAME': os.path.join(BASE_DIR, 'dev.db.sqlite3'),
47    }
48}
49
50LANGUAGE_CODE = 'en-us'
51TIME_ZONE = 'UTC'
52USE_I18N = True
53USE_L10N = True
54USE_TZ = True
55
56STATIC_URL = '/static/'
Back to Top