settings: Add a path for the templates.
[matthijs/projects/dorestad-bookings.git] / settings.py
1 # Django settings for dorestad1493 project.
2
3 import os
4
5 PROJECT_DIR = os.path.dirname(__file__)
6
7 DEBUG = True
8 TEMPLATE_DEBUG = DEBUG
9
10 ADMINS = (
11     # ('Your Name', 'your_email@domain.com'),
12 )
13
14 MANAGERS = ADMINS
15
16 DATABASE_ENGINE = ''           # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
17 DATABASE_NAME = ''             # Or path to database file if using sqlite3.
18 DATABASE_USER = ''             # Not used with sqlite3.
19 DATABASE_PASSWORD = ''         # Not used with sqlite3.
20 DATABASE_HOST = ''             # Set to empty string for localhost. Not used with sqlite3.
21 DATABASE_PORT = ''             # Set to empty string for default. Not used with sqlite3.
22
23 # Local time zone for this installation. Choices can be found here:
24 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
25 # although not all choices may be available on all operating systems.
26 # If running in a Windows environment this must be set to the same as your
27 # system time zone.
28 TIME_ZONE = 'America/Chicago'
29
30 # Language code for this installation. All choices can be found here:
31 # http://www.i18nguy.com/unicode/language-identifiers.html
32 LANGUAGE_CODE = 'en-us'
33
34 SITE_ID = 1
35
36 # If you set this to False, Django will make some optimizations so as not
37 # to load the internationalization machinery.
38 USE_I18N = True
39
40 # Absolute path to the directory that holds media.
41 # Example: "/home/media/media.lawrence.com/"
42 MEDIA_ROOT = ''
43
44 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
45 # trailing slash if there is a path component (optional in other cases).
46 # Examples: "http://media.lawrence.com", "http://example.com/media/"
47 MEDIA_URL = ''
48
49 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
50 # trailing slash.
51 # Examples: "http://foo.com/media/", "/media/".
52 ADMIN_MEDIA_PREFIX = '/media/'
53
54 # Make this unique, and don't share it with anybody.
55 SECRET_KEY = 'dd1=%ckg%xhi((eq)^@ri0o62trw-j!3(4bed9#u5)$_h&a!)0'
56
57 # List of callables that know how to import templates from various sources.
58 TEMPLATE_LOADERS = (
59     'django.template.loaders.filesystem.load_template_source',
60     'django.template.loaders.app_directories.load_template_source',
61 #     'django.template.loaders.eggs.load_template_source',
62 )
63
64 MIDDLEWARE_CLASSES = (
65     'django.middleware.common.CommonMiddleware',
66     'django.contrib.sessions.middleware.SessionMiddleware',
67     'django.contrib.auth.middleware.AuthenticationMiddleware',
68 )
69
70 ROOT_URLCONF = 'dorestad1493.urls'
71
72 TEMPLATE_DIRS = (
73     # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
74     # Always use forward slashes, even on Windows.
75     # Don't forget to use absolute paths, not relative paths.
76     os.path.join(PROJECT_DIR, 'templates'),
77 )
78
79 INSTALLED_APPS = (
80 )