· 7 years ago · Jun 09, 2018, 08:30 PM
1# projectfoo/config/__init__.py
2
3from os import path
4
5ROOT_PATH = path.dirname(path.dirname(path.abspath(__file__)))
6
7
8DEBUG = True
9TEMPLATE_DEBUG = DEBUG
10
11ADMINS = (
12 ('Thomas Pelletier', 'thomas@pelletier.im'),
13)
14
15MANAGERS = ADMINS
16
17TIME_ZONE = 'America/Chicago'
18LANGUAGE_CODE = 'en-us'
19
20SITE_ID = 1
21USE_I18N = False
22USE_L10N = False
23MEDIA_ROOT = ''
24MEDIA_URL = ''
25ADMIN_MEDIA_PREFIX = '/media/'
26SECRET_KEY = 'myawesomesecretkey'
27
28TEMPLATE_LOADERS = (
29 'django.template.loaders.filesystem.Loader',
30 'django.template.loaders.app_directories.Loader',
31# 'django.template.loaders.eggs.Loader',
32)
33MIDDLEWARE_CLASSES = (
34 'django.middleware.common.CommonMiddleware',
35 'django.contrib.sessions.middleware.SessionMiddleware',
36 'django.middleware.csrf.CsrfViewMiddleware',
37 'django.contrib.auth.middleware.AuthenticationMiddleware',
38 'django.contrib.messages.middleware.MessageMiddleware',
39)
40ROOT_URLCONF = 'projectfoo.urls'
41
42TEMPLATE_DIRS = (
43 '%s/templates' % ROOT_PATH,
44)
45
46INSTALLED_APPS = (
47 'django.contrib.auth',
48 'django.contrib.contenttypes',
49 'django.contrib.sessions',
50 'django.contrib.sites',
51 'django.contrib.messages',
52 'django.contrib.admin',
53 'projectfoo.killerapp',
54)