forked from wehaveweneed-xx/wehaveweneed
-
Notifications
You must be signed in to change notification settings - Fork 1
/
settings.py
73 lines (57 loc) · 1.93 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
70
71
72
73
# Language code for this installation. All choices can be found here:
# http://www.i18nguy.com/unicode/language-identifiers.html
LANGUAGE_CODE = 'en-us'
SITE_ID = 1
# If you set this to False, Django will make some optimizations so as not
# to load the internationalization machinery.
USE_I18N = True
# Make this unique, and don't share it with anybody.
SECRET_KEY = '))-(d#^$+r7i9&v)rgu6=7y25wpkt8n9+uy^w6z7zpc)#=!7l^'
# List of callables that know how to import templates from various sources.
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.load_template_source',
'django.template.loaders.app_directories.load_template_source',
)
TEMPLATE_CONTEXT_PROCESSORS = (
'django.core.context_processors.auth',)
MIDDLEWARE_CLASSES = (
'django.middleware.cache.UpdateCacheMiddleware',
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
'django.middleware.cache.FetchFromCacheMiddleware',
)
CACHE_MIDDLEWARE_SECONDS = 60
CACHE_MIDDLEWARE_PREFIX = 'wehaveweneed'
CACHE_MIDDLEWARE_ANONYMOUS_ONLY = True
CACHE_BACKEND = 'locmem://'
ROOT_URLCONF = 'wehaveweneed.urls'
AUTH_PROFILE_MODULE = 'web.userprofile'
LOGIN_URL = '/login'
LOGOUT_URL = '/logout'
LOGIN_REDIRECT_URL = '/'
HAYSTACK_SITECONF = 'wehaveweneed.search.search_sites'
INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.flatpages',
'piston',
'haystack',
'registration',
'wehaveweneed.web',
'wehaveweneed.api',
'wehaveweneed.search',
'wehaveweneed.data',
'wehaveweneed.accounts',
)
PAGINATE_POSTS_BY = 20
ACCOUNT_ACTIVATION_DAYS = 2
DATE_FORMAT = "fa F j T"
try:
from local_settings import *
except ImportError:
pass