1. Jamie Curle
  2. ultrahtml

Source

ultrahtml / _settings.py

# -*- coding: utf-8 -*-
from os import path
APP_ROOT = path.dirname(path.realpath(__file__))
DEBUG = True
TEMPLATE_DEBUG = DEBUG
CACHE_TIMEOUT = 0
ADMINS = (
    ('jamie', 'jamie@ultrahtml'),
)
AUTH_PROFILE_MODULE = 'accounts.userprofile'
MANAGERS = ADMINS
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
        'NAME': 'ultrahtml.db',                      # Or path to database file if using sqlite3.
        'USER': '',                      # Not used with sqlite3.
        'PASSWORD': '',                  # Not used with sqlite3.
        'HOST': '',                      # Set to empty string for localhost. Not used with sqlite3.
        'PORT': '',                      # Set to empty string for default. Not used with sqlite3.
    }
}

TIME_ZONE = 'Europe/London'
LANGUAGE_CODE = 'en-gb'
SITE_ID = 1
USE_I18N = False
MEDIA_ROOT = APP_ROOT + '/projectmedia/'
MEDIA_URL = 'http://ultrahtml.jc/'
ADMIN_MEDIA_PREFIX = '/media/'
SECRET_KEY = 'h=gukhnjaksUNHdytasdadasdas8s7hv(0)&syg7h_6E**1k5bx8'
TEMPLATE_LOADERS = (
    'django.template.loaders.filesystem.Loader',
    'django.template.loaders.app_directories.Loader',
)
TEMPLATE_CONTEXT_PROCESSORS = (
    'django.core.context_processors.auth',
    'django.core.context_processors.request',
    'django.core.context_processors.media',
    'django.contrib.messages.context_processors.messages',
)
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',
)
AUTHENTICATION_BACKENDS = (
    #'django.contrib.auth.backends.ModelBackend',
    'backends.auth.email.EmailBackend',
)
ROOT_URLCONF = 'ultrahtml.urls'

TEMPLATE_DIRS = (
 '%s/templates/' % APP_ROOT, 
)

INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.messages',
    'django.contrib.admin',
    'django.contrib.markup',
    'django.contrib.comments',
    'south',
    'compressor',
    'apps.modules'
)
LOGIN_REDIRECT_URL = '/home/'
LOGIN_URL = '/accounts/login/'
LOGOUT_URL = '/accounts/logout/'

COMPRESS = False