import os # Django settings for toofishes project. # Full path to the data directory DEPLOY_PATH = os.path.dirname(os.path.realpath(__file__)) # Import local settings for current deployment from local_settings import * # Set the debug values TEMPLATE_DEBUG = DEBUG # Managers are admins too MANAGERS = ADMINS # Local time zone for this installation. Choices can be found here: # http://www.postgresql.org/docs/8.1/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE TIME_ZONE = 'America/Chicago' # Language code for this installation. All choices can be found here: # http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes LANGUAGE_CODE = 'en-us' SITE_ID = 1 # Where emails by default originate from DEFAULT_FROM_EMAIL = 'webmaster@toofishes.net' # If you set this to False, Django will make some optimizations so as not # to load the internationalization machinery. USE_I18N = False # If you set this to False, Django will not format dates, numbers and # calendars according to the current locale USE_L10N = False USE_ETAGS = True TEMPLATE_DIRS = ( '%s/templates' % DEPLOY_PATH, ) TEMPLATE_LOADERS = ( 'django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader', ) MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django.middleware.http.ConditionalGetMiddleware', ) ROOT_URLCONF = 'urls' # URL to serve static files STATIC_URL = '/static/' # Location to collect static files STATIC_ROOT = os.path.join(DEPLOY_PATH, 'collected_static') # Look for more static files in these locations STATICFILES_DIRS = ( os.path.join(DEPLOY_PATH, 'sitestatic'), ) # Static files backend that allows us to use far future Expires headers STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.CachedStaticFilesStorage' # Configure where messages should reside MESSAGE_STORAGE = 'django.contrib.messages.storage.session.SessionStorage' # Session configuration SESSION_ENGINE = 'django.contrib.sessions.backends.cached_db' SESSION_COOKIE_HTTPONLY = True # Clickjacking protection X_FRAME_OPTIONS = 'DENY' INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.admin', 'django.contrib.admindocs', 'django.contrib.messages', 'django.contrib.sitemaps', 'django.contrib.staticfiles', 'general', 'blog', 'django.contrib.comments', 'mycomments', ) COMMENTS_APP = 'mycomments' PROFANITIES_LIST = () # vim: set ts=4 sw=4 et: