-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.py
36 lines (30 loc) · 1016 Bytes
/
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
import os
DEBUG=True
TIME_ZONE='Asia/Shanghai'
#LANGUAGE_CODE = 'zh-cn'
ROOT_URLCONF = 'urls' # Replace 'project.urls' with just 'urls'
appdir = os.path.abspath(os.path.dirname(__file__))
LOCALE_PATHS = (
os.path.join(appdir, 'i18n', 'locale'),
)
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.middleware.locale.LocaleMiddleware',
# 'django.contrib.sessions.middleware.SessionMiddleware',
# 'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.middleware.doc.XViewMiddleware',
)
INSTALLED_APPS = (
# 'django.contrib.auth',
'django.contrib.contenttypes',
# 'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.humanize'
)
ROOT_PATH = os.path.dirname(__file__)
TEMPLATE_DIRS = (
# Put strings here, like "/home/html/django_templates" or
# "C:/www/django/templates". Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
ROOT_PATH + '/templates',
)