1 from __future__ import absolute_import, unicode_literals
8 PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__))
9 PROJECT_DIRNAME = PROJECT_ROOT.split(os.sep)[-1]
10 STATIC_URL = "/static/"
11 STATIC_ROOT = os.path.join(PROJECT_ROOT, STATIC_URL.strip("/"))
12 MEDIA_URL = STATIC_URL + "media/"
13 MEDIA_ROOT = os.path.join(PROJECT_ROOT, *MEDIA_URL.strip("/").split("/"))
14 ADMIN_MEDIA_PREFIX = STATIC_URL + "admin/"
15 ROOT_URLCONF = "%s.urls" % PROJECT_DIRNAME
16 TEMPLATE_DIRS = (os.path.join(PROJECT_ROOT, "templates"),)
17 SECRET_KEY = "asdfa4wtW#$Gse4aGdfs"
22 if "test" not in sys.argv:
27 'ENGINE': 'django.db.backends.sqlite3',
33 'django.template.loaders.filesystem.Loader',
34 'django.template.loaders.app_directories.Loader',
37 MIDDLEWARE_CLASSES = (
38 'django.middleware.common.CommonMiddleware',
39 'django.contrib.sessions.middleware.SessionMiddleware',
40 'django.middleware.csrf.CsrfViewMiddleware',
41 'django.contrib.auth.middleware.AuthenticationMiddleware',
42 'django.contrib.messages.middleware.MessageMiddleware',
45 TEMPLATE_CONTEXT_PROCESSORS = (
46 "django.contrib.auth.context_processors.auth",
47 "django.contrib.messages.context_processors.messages",
48 "django.core.context_processors.debug",
49 "django.core.context_processors.i18n",
50 "django.core.context_processors.static",
51 "django.core.context_processors.media",
52 "django.core.context_processors.request",
56 'django.contrib.admin',
57 'django.contrib.auth',
58 'django.contrib.contenttypes',
59 'django.contrib.sessions',
60 'django.contrib.sites',
61 'django.contrib.staticfiles',
62 'forms_builder.forms',
65 from django import VERSION
72 INSTALLED_APPS += ("south",)
74 FORMS_BUILDER_EXTRA_FIELDS = (
75 (100, "django.forms.BooleanField", "My cool checkbox"),
79 from local_settings import *
83 TEMPLATE_DEBUG = DEBUG