Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 81 lines (70 sloc) 2.471 kB
3b8b429 @evgenyfadeev included changes by Adolfo and Chaitanya and found temporary fix for …
evgenyfadeev authored
1 # encoding:utf-8
2 # Django settings for lanai project.
3 import os.path
4
5 #DEBUG SETTINGS
6 DEBUG = True
7 TEMPLATE_DEBUG = DEBUG
8 INTERNAL_IPS = ('127.0.0.1',)
9
10 #for OpenID auth
11 ugettext = lambda s: s
12 LOGIN_URL = '/%s%s' % (ugettext('account/'), ugettext('signin/'))
13
14 #EMAIL AND ADMINS
15 ADMINS = (
16 ('CNProg team', 'team@cnprog.com'),
17 )
18 MANAGERS = ADMINS
19
20 SITE_ID = 1
21
22 ADMIN_MEDIA_PREFIX = '/admin/media/'
23 SECRET_KEY = '$oo^&_m&qwbib=(_4m_n*zn-d=g#s0he5fx9xonnym#8p6yigm'
24 # List of callables that know how to import templates from various sources.
25 TEMPLATE_LOADERS = (
26 'django.template.loaders.filesystem.load_template_source',
27 'django.template.loaders.app_directories.load_template_source',
28 # 'django.template.loaders.eggs.load_template_source',
29 )
30
31 MIDDLEWARE_CLASSES = (
32 'django.middleware.gzip.GZipMiddleware',
33 'django.contrib.sessions.middleware.SessionMiddleware',
34 #'django.middleware.locale.LocaleMiddleware',
35 'django.middleware.common.CommonMiddleware',
36 'django.contrib.auth.middleware.AuthenticationMiddleware',
37 'django.middleware.transaction.TransactionMiddleware',
38 #'django.middleware.sqlprint.SqlPrintingMiddleware',
fb1574a @sailingcai 1. adjust logo css, remove margin-bottom
sailingcai authored
39 'middleware.pagesize.QuestionsPageSizeMiddleware',
cdc9a8d @chagel update user_reputation for Django aggregation changes
authored
40 #'debug_toolbar.middleware.DebugToolbarMiddleware',
3b8b429 @evgenyfadeev included changes by Adolfo and Chaitanya and found temporary fix for …
evgenyfadeev authored
41 )
42
43 TEMPLATE_CONTEXT_PROCESSORS = (
44 'django.core.context_processors.request',
56f0267 @evgenyfadeev added anonymous posting, per-question subscription and fixes by Pothe…
evgenyfadeev authored
45 'context.auth_processor',
3b8b429 @evgenyfadeev included changes by Adolfo and Chaitanya and found temporary fix for …
evgenyfadeev authored
46 'context.application_settings',
47 #'django.core.context_processors.i18n',
b8d2a3b @chagel update settings.py and settings_local.py.dist suggested by Adolfo Fit…
authored
48 'django.core.context_processors.auth' #this is required for admin
3b8b429 @evgenyfadeev included changes by Adolfo and Chaitanya and found temporary fix for …
evgenyfadeev authored
49 )
50
51 ROOT_URLCONF = 'urls'
52
53 TEMPLATE_DIRS = (
54 os.path.join(os.path.dirname(__file__), 'templates').replace('\\','/'),
55 )
56
57 #UPLOAD SETTINGS
58 FILE_UPLOAD_TEMP_DIR = os.path.join(os.path.dirname(__file__), 'tmp').replace('\\','/')
59 FILE_UPLOAD_HANDLERS = ("django.core.files.uploadhandler.MemoryFileUploadHandler",
60 "django.core.files.uploadhandler.TemporaryFileUploadHandler",)
61 DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
62 # for user upload
63 ALLOW_FILE_TYPES = ('.jpg', '.jpeg', '.gif', '.bmp', '.png', '.tiff')
64 # unit byte
65 ALLOW_MAX_FILE_SIZE = 1024 * 1024
66
67 INSTALLED_APPS = (
68 'django.contrib.auth',
69 'django.contrib.contenttypes',
70 'django.contrib.sessions',
71 'django.contrib.sites',
72 'django.contrib.admin',
73 'django.contrib.humanize',
74 'forum',
75 'django_authopenid',
cdc9a8d @chagel update user_reputation for Django aggregation changes
authored
76 #'debug_toolbar' ,
3b8b429 @evgenyfadeev included changes by Adolfo and Chaitanya and found temporary fix for …
evgenyfadeev authored
77 )
e3f1426 @chagel temporary fix for 1.1 aggregation compatible issue
authored
78 import django
79 DJANGO_VERSION = django.get_version()
3b8b429 @evgenyfadeev included changes by Adolfo and Chaitanya and found temporary fix for …
evgenyfadeev authored
80 # User settings
b8d2a3b @chagel update settings.py and settings_local.py.dist suggested by Adolfo Fit…
authored
81 from settings_local import *
Something went wrong with that request. Please try again.