updated ignore
[archweb_dev-nj.git] / settings.py
blob18624adbcea7d14c3e917a065179c5e68c476169
1 import os
2 # Django settings for archweb_dev project.
4 ## Import local settings
5 from local_settings import *
7 ## Set the debug values
8 TEMPLATE_DEBUG = DEBUG
10 # Set managers to admins
11 MANAGERS = ADMINS
13 # Full path to the data directory
14 DEPLOY_PATH = os.path.dirname(os.path.realpath(__file__))
15 DATA_DIR = '%s/data' % DEPLOY_PATH
17 # Local time zone for this installation. All choices can be found here:
18 # http://www.postgresql.org/docs/current/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE
19 TIME_ZONE = 'US/Eastern'
21 # Language code for this installation. All choices can be found here:
22 # http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes
23 # http://blogs.law.harvard.edu/tech/stories/storyReader$15
24 LANGUAGE_CODE = 'en-us'
26 SITE_ID = 1
28 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
29 # trailing slash.
30 # Examples: "http://foo.com/media/", "/media/".
31 ADMIN_MEDIA_PREFIX = '/media/admin_media/'
33 # URL to send users when they don't have sufficient privileges
34 BADPRIVS_URL = '/denied/'
36 # login url
37 LOGIN_URL = '/login/'
39 # List of callables that know how to import templates from various sources.
40 TEMPLATE_LOADERS = (
41 'django.template.loaders.filesystem.load_template_source',
42 'django.template.loaders.app_directories.load_template_source',
43 # 'django.template.loaders.eggs.load_template_source',
46 MIDDLEWARE_CLASSES = (
47 "django.contrib.sessions.middleware.SessionMiddleware",
48 "django.contrib.auth.middleware.AuthenticationMiddleware",
49 'django.middleware.http.ConditionalGetMiddleware',
52 # A bit of hackery to insert caching at the right spot
53 if CACHE == True:
54 MIDDLEWARE_CLASSES += ('django.middleware.cache.CacheMiddleware',)
56 MIDDLEWARE_CLASSES += (
57 "django.middleware.common.CommonMiddleware",
58 "django.middleware.doc.XViewMiddleware",
61 ROOT_URLCONF = 'archweb_dev.urls'
63 TEMPLATE_DIRS = (
64 # Put strings here, like "/home/html/django_templates".
65 # Always use forward slashes, even on Windows.
66 '%s/templates' % DEPLOY_PATH,
69 # Set django's User stuff to use our profile model
70 # format is app.model
71 AUTH_PROFILE_MODULE = 'devel.UserProfile'
73 INSTALLED_APPS = (
74 'django.contrib.auth',
75 'django.contrib.contenttypes',
76 'django.contrib.sessions',
77 'django.contrib.sites',
78 'django.contrib.admin',
79 'archweb_dev.news',
80 'archweb_dev.packages',
81 'archweb_dev.todolists',
82 'archweb_dev.devel',
83 'archweb_dev.wiki'
86 # vim: set ts=4 sw=4 et: