Initial import for public release...
[archweb_dev-nj.git] / settings.py
blob3de4a89d079d3712f440d752bcdd461fcc0ceaf8
1 # Django settings for archlinux project.
3 ## Import local settings
4 from local_settings import *
6 ## Set the debug values
7 TEMPLATE_DEBUG = DEBUG
9 # Set managers to admins
10 MANAGERS = 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'
31 SITE_ID = 1
33 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
34 # trailing slash.
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.
42 TEMPLATE_LOADERS = (
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 = 'archlinux.urls'
65 TEMPLATE_DIRS = (
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
72 # format is app.model
73 AUTH_PROFILE_MODULE = 'common.UserProfile'
75 INSTALLED_APPS = (
76 'django.contrib.auth',
77 'django.contrib.contenttypes',
78 'django.contrib.sessions',
79 'django.contrib.sites',
80 'django.contrib.admin',
81 'archlinux.common',
82 'archlinux.news',
83 'archlinux.packages',
84 'archlinux.public',
85 'archlinux.todolists',
86 'archlinux.devel',
87 'archlinux.wiki'