| 1 | # Django settings for django-questionnaire project. |
|---|
| 2 | |
|---|
| 3 | import os.path |
|---|
| 4 | |
|---|
| 5 | DEBUG = True |
|---|
| 6 | TEMPLATE_DEBUG = DEBUG |
|---|
| 7 | |
|---|
| 8 | ADMINS = ( |
|---|
| 9 | ('Admin name', 'test@test.com'), |
|---|
| 10 | ) |
|---|
| 11 | PROJECT_NAME = 'djangoquest' |
|---|
| 12 | WORKING_DIRECTORY = '/home/alex/djangoquest' |
|---|
| 13 | QUESTIONNAIRE_TEMPLATES = 'questionnaire/' |
|---|
| 14 | QUESTIONNAIRE_URL = 'djangoquest-demo.aperte-it.com' |
|---|
| 15 | |
|---|
| 16 | MANAGERS = ADMINS |
|---|
| 17 | |
|---|
| 18 | DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'. |
|---|
| 19 | DATABASE_NAME = '/tmp/test_quest.sqlite' # Or path to database file if using sqlite3. |
|---|
| 20 | DATABASE_USER = '' # Not used with sqlite3. |
|---|
| 21 | DATABASE_PASSWORD = '' # Not used with sqlite3. |
|---|
| 22 | DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3. |
|---|
| 23 | DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3. |
|---|
| 24 | |
|---|
| 25 | # The session of a user ends if he closes his browser |
|---|
| 26 | |
|---|
| 27 | SESSION_COOKIE_DOMAIN = None |
|---|
| 28 | |
|---|
| 29 | CACHE_BACKEND = 'dummy://' |
|---|
| 30 | |
|---|
| 31 | # Local time zone for this installation. Choices can be found here: |
|---|
| 32 | # http://www.postgresql.org/docs/8.1/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE |
|---|
| 33 | # although not all variations may be possible on all operating systems. |
|---|
| 34 | # If running in a Windows environment this must be set to the same as your |
|---|
| 35 | # system time zone. |
|---|
| 36 | TIME_ZONE = 'America/Chicago' |
|---|
| 37 | |
|---|
| 38 | # Language code for this installation. All choices can be found here: |
|---|
| 39 | # http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes |
|---|
| 40 | # http://blogs.law.harvard.edu/tech/stories/storyReader$15 |
|---|
| 41 | LANGUAGE_CODE = 'en-us' |
|---|
| 42 | |
|---|
| 43 | SITE_ID = 1 |
|---|
| 44 | |
|---|
| 45 | # If you set this to False, Django will make some optimizations so as not |
|---|
| 46 | # to load the internationalization machinery. |
|---|
| 47 | USE_I18N = True |
|---|
| 48 | |
|---|
| 49 | # Absolute path to the directory that holds media. |
|---|
| 50 | # Example: "/home/media/media.lawrence.com/" |
|---|
| 51 | MEDIA_ROOT = '' |
|---|
| 52 | STATIC_DOC_ROOT = WORKING_DIRECTORY + '/media' |
|---|
| 53 | |
|---|
| 54 | # URL that handles the media served from MEDIA_ROOT. |
|---|
| 55 | # Example: "http://media.lawrence.com" |
|---|
| 56 | MEDIA_URL = '' |
|---|
| 57 | |
|---|
| 58 | # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a |
|---|
| 59 | # trailing slash. |
|---|
| 60 | # Examples: "http://foo.com/media/", "/media/". |
|---|
| 61 | ADMIN_MEDIA_PREFIX = '/media/' |
|---|
| 62 | |
|---|
| 63 | # Make this unique, and don't share it with anybody. |
|---|
| 64 | SECRET_KEY = 'a%t_zponly^xf$dc)okcglbxrz8f!4!38932hd+st67ultd6pg' |
|---|
| 65 | |
|---|
| 66 | # List of callables that know how to import templates from various sources. |
|---|
| 67 | TEMPLATE_LOADERS = ( |
|---|
| 68 | 'django.template.loaders.filesystem.load_template_source', |
|---|
| 69 | 'django.template.loaders.app_directories.load_template_source', |
|---|
| 70 | # 'django.template.loaders.eggs.load_template_source', |
|---|
| 71 | ) |
|---|
| 72 | |
|---|
| 73 | MIDDLEWARE_CLASSES = ( |
|---|
| 74 | 'django.middleware.common.CommonMiddleware', |
|---|
| 75 | 'django.contrib.sessions.middleware.SessionMiddleware', |
|---|
| 76 | 'django.contrib.auth.middleware.AuthenticationMiddleware', |
|---|
| 77 | 'django.middleware.doc.XViewMiddleware', |
|---|
| 78 | ) |
|---|
| 79 | |
|---|
| 80 | ROOT_URLCONF = PROJECT_NAME + '.urls' |
|---|
| 81 | |
|---|
| 82 | TEMPLATE_DIRS = ( |
|---|
| 83 | # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". |
|---|
| 84 | # Always use forward slashes, even on Windows. |
|---|
| 85 | # Don't forget to use absolute paths, not relative paths. |
|---|
| 86 | WORKING_DIRECTORY + '/templates', |
|---|
| 87 | ) |
|---|
| 88 | |
|---|
| 89 | INSTALLED_APPS = ( |
|---|
| 90 | 'django.contrib.auth', |
|---|
| 91 | 'django.contrib.contenttypes', |
|---|
| 92 | 'django.contrib.sessions', |
|---|
| 93 | 'django.contrib.admin', |
|---|
| 94 | PROJECT_NAME + '.questionnaire' |
|---|
| 95 | ) |
|---|