# Django settings for vibate project. import os DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( ('Example Joe', 'admin@example.com') ) MANAGERS = ADMINS # Local time zone for this installation. All choices can be found here: # http://www.postgresql.org/docs/current/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE TIME_ZONE = 'US/Pacific' # Language code for this installation. All choices can be found here: # http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes # http://blogs.law.harvard.edu/tech/stories/storyReader$15 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 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a # trailing slash. # Examples: "http://foo.com/media/", "/media/". ADMIN_MEDIA_PREFIX = '/media/' # 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', # 'django.template.loaders.eggs.load_template_source', ) MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.middleware.doc.XViewMiddleware', ) ROOT_URLCONF = 'vibate.urls' VIBATE_ROOT = os.path.abspath(os.path.split(__file__)[0]) TEMPLATE_ROOT = '/var/www/vibate.com' HTDOCS_ROOT = os.path.join(VIBATE_ROOT, 'htdocs') MEDIA_ROOT = HTDOCS_ROOT MEDIA_URL = '/' TEMPLATE_DIRS = ( # Don't forget to use absolute paths, not relative paths. os.path.join(VIBATE_ROOT, 'templates'), ) INSTALLED_APPS = ( 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sites', 'django.contrib.sessions', 'djblets.util', ) BUILTIN_AUTH = True LOGIN_URL = '/account/login' AUTH_PROFILE_MODULE = "vibate.accounts.Profile" # Default expiration time for the cache. Note that this has no effect unless # CACHE_BACKEND is specified in settings_local.py CACHE_EXPIRATION_TIME = 60 * 60 * 24 * 30 # 1 month # Load local settings. This can override anything in here, but at the very # least it needs to define database connectivity. from settings_local import *