elif options.has_option(database_section, 'password'):
DATABASE_PASSWORD = options.get(database_section, 'password')
+DATABASES = {
+ 'default': {
+ 'ENGINE': 'django.db.backends.sqlite3',
+ 'NAME': DATABASE_NAME,
+ }
+}
+
# 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
# although not all variations may be possible on all operating systems.
# Example: "http://media.lawrence.com"
MEDIA_URL = '/static/'
-# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
+# URL prefix for static media -- CSS, JavaScript and images. Make sure to use a
# trailing slash.
-# Examples: "http://foo.com/media/", "/media/".
-ADMIN_MEDIA_PREFIX = '/media/'
+STATIC_URL = '/media/'
# Make this unique, and don't share it with anybody.
if not options.has_option('frontend', 'secret'):
# 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',
+ 'django.template.loaders.filesystem.Loader',
+ 'django.template.loaders.app_directories.Loader',
)
MIDDLEWARE_CLASSES = (
- 'django.contrib.csrf.middleware.CsrfMiddleware',
+ 'django.middleware.csrf.CsrfViewMiddleware',
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
+ 'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.doc.XViewMiddleware',
)
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
+ 'django.contrib.staticfiles',
'django.contrib.humanize',
'django.contrib.sessions',
'django.contrib.sites',
'htsworkflow.frontend.inventory',
'htsworkflow.frontend.bcmagic',
'htsworkflow.frontend.labels',
- 'django.contrib.databrowse',
)
# Project specific settings