1 # Django settings for archweb_dev project.
3 ## Import local settings
4 from local_settings
import *
6 ## Set the debug values
9 # Set managers to admins
12 ## Cache backend settings
13 if ENABLE_CACHE
== True:
14 CACHE_BACKEND
= 'file:///tmp/ALdjangocache?timeout=900'
15 CACHE_MIDDLEWARE_SECONDS
= 900
16 CACHE_MIDDLEWARE_KEY_PREFIX
= 'arch'
17 CACHE_MIDDLEWARE_ANONYMOUS_ONLY
= True
19 # Full path to the data directory
20 DATA_DIR
= '%s/data' % DEPLOY_PATH
22 # Local time zone for this installation. All choices can be found here:
23 # http://www.postgresql.org/docs/current/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE
24 TIME_ZONE
= 'US/Eastern'
26 # Language code for this installation. All choices can be found here:
27 # http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes
28 # http://blogs.law.harvard.edu/tech/stories/storyReader$15
29 LANGUAGE_CODE
= 'en-us'
33 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
35 # Examples: "http://foo.com/media/", "/media/".
36 ADMIN_MEDIA_PREFIX
= '/admin-media/'
38 # URL to send users when they don't have sufficient privileges
39 BADPRIVS_URL
= '/denied/'
41 # List of callables that know how to import templates from various sources.
43 'django.template.loaders.filesystem.load_template_source',
44 'django.template.loaders.app_directories.load_template_source',
45 # 'django.template.loaders.eggs.load_template_source',
48 MIDDLEWARE_CLASSES
= (
49 "django.contrib.sessions.middleware.SessionMiddleware",
50 "django.contrib.auth.middleware.AuthenticationMiddleware",
51 'django.middleware.http.ConditionalGetMiddleware',
54 # A bit of hackery to insert caching at the right spot
55 if ENABLE_CACHE
== True:
56 MIDDLEWARE_CLASSES
+= ('django.middleware.cache.CacheMiddleware',)
58 MIDDLEWARE_CLASSES
+= (
59 "django.middleware.common.CommonMiddleware",
60 "django.middleware.doc.XViewMiddleware",
63 ROOT_URLCONF
= 'archweb_dev.urls'
66 # Put strings here, like "/home/html/django_templates".
67 # Always use forward slashes, even on Windows.
68 '%s/templates' % DEPLOY_PATH
,
71 # Set django's User stuff to use our profile model
73 AUTH_PROFILE_MODULE
= 'common.UserProfile'
76 'django.contrib.auth',
77 'django.contrib.contenttypes',
78 'django.contrib.sessions',
79 'django.contrib.sites',
80 'django.contrib.admin',
83 'archweb_dev.packages',
85 'archweb_dev.todolists',