-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.py
69 lines (60 loc) · 1.68 KB
/
settings.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import os
from django.conf.global_settings import TEMPLATE_CONTEXT_PROCESSORS
DEBUG = False
TEMPLATE_DEBUG = DEBUG
PROJECT_DIR = os.path.dirname(__file__)
ADMINS = (
('Anna Vester', '[email protected]'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE':'django.db.backends.mysql',
'HOST': '127.0.0.1',
}
}
TIME_ZONE = 'America/Chicago'
LANGUAGE_CODE = 'en-us'
SITE_ID = 1
USE_I18N = True
MEDIA_ROOT = os.path.join(PROJECT_DIR, 'static')
UPLOAD_DIR = os.path.join(MEDIA_ROOT, 'images/book_thumbs')
MEDIA_URL = ''
ADMIN_MEDIA_PREFIX = '/media/'
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
#'django.template.loaders.eggs.Loader',
)
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
)
TEMPLATE_CONTEXT_PROCESSORS += (
'django.core.context_processors.request',
)
ROOT_URLCONF = 'books_app.urls'
LOGIN_URL = '/login/'
TEMPLATE_DIRS = (
os.path.join(PROJECT_DIR, "templates"),
)
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.admin',
#'django.contrib.admindocs',
'books_app.accounts',
'books_app.books',
'books_app.authors',
'books_app.readinglists',
'endless_pagination',
)
try:
from local_settings import *
except ImportError:
pass