root / settings.py.dist @ 253f0c82
History | View | Annotate | Download (3.4 kB)
1 | 00b4f1be | Faidon Liambotis | # Django settings for synnefo project. |
---|---|---|---|
2 | 00b4f1be | Faidon Liambotis | |
3 | 00b4f1be | Faidon Liambotis | DEBUG = True |
4 | 00b4f1be | Faidon Liambotis | TEMPLATE_DEBUG = DEBUG |
5 | 00b4f1be | Faidon Liambotis | |
6 | 00b4f1be | Faidon Liambotis | ADMINS = ( |
7 | 00b4f1be | Faidon Liambotis | # ('Your Name', 'your_email@domain.com'), |
8 | 00b4f1be | Faidon Liambotis | ) |
9 | 00b4f1be | Faidon Liambotis | |
10 | 00b4f1be | Faidon Liambotis | MANAGERS = ADMINS |
11 | 00b4f1be | Faidon Liambotis | |
12 | 00b4f1be | Faidon Liambotis | DATABASES = { |
13 | 00b4f1be | Faidon Liambotis | 'default': { |
14 | 00b4f1be | Faidon Liambotis | 'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. |
15 | 00b4f1be | Faidon Liambotis | 'NAME': '', # Or path to database file if using sqlite3. |
16 | 00b4f1be | Faidon Liambotis | 'USER': '', # Not used with sqlite3. |
17 | 00b4f1be | Faidon Liambotis | 'PASSWORD': '', # Not used with sqlite3. |
18 | 00b4f1be | Faidon Liambotis | 'HOST': '', # Set to empty string for localhost. Not used with sqlite3. |
19 | 00b4f1be | Faidon Liambotis | 'PORT': '', # Set to empty string for default. Not used with sqlite3. |
20 | 00b4f1be | Faidon Liambotis | } |
21 | 00b4f1be | Faidon Liambotis | } |
22 | 00b4f1be | Faidon Liambotis | |
23 | 00b4f1be | Faidon Liambotis | # Local time zone for this installation. Choices can be found here: |
24 | 00b4f1be | Faidon Liambotis | # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name |
25 | 00b4f1be | Faidon Liambotis | # although not all choices may be available on all operating systems. |
26 | 00b4f1be | Faidon Liambotis | # On Unix systems, a value of None will cause Django to use the same |
27 | 00b4f1be | Faidon Liambotis | # timezone as the operating system. |
28 | 00b4f1be | Faidon Liambotis | # If running in a Windows environment this must be set to the same as your |
29 | 00b4f1be | Faidon Liambotis | # system time zone. |
30 | 00b4f1be | Faidon Liambotis | TIME_ZONE = 'America/Chicago' |
31 | 00b4f1be | Faidon Liambotis | |
32 | 00b4f1be | Faidon Liambotis | # Language code for this installation. All choices can be found here: |
33 | 00b4f1be | Faidon Liambotis | # http://www.i18nguy.com/unicode/language-identifiers.html |
34 | 00b4f1be | Faidon Liambotis | LANGUAGE_CODE = 'en-us' |
35 | 00b4f1be | Faidon Liambotis | |
36 | 00b4f1be | Faidon Liambotis | SITE_ID = 1 |
37 | 00b4f1be | Faidon Liambotis | |
38 | 00b4f1be | Faidon Liambotis | # If you set this to False, Django will make some optimizations so as not |
39 | 00b4f1be | Faidon Liambotis | # to load the internationalization machinery. |
40 | 00b4f1be | Faidon Liambotis | USE_I18N = True |
41 | 00b4f1be | Faidon Liambotis | |
42 | 00b4f1be | Faidon Liambotis | # If you set this to False, Django will not format dates, numbers and |
43 | 00b4f1be | Faidon Liambotis | # calendars according to the current locale |
44 | 00b4f1be | Faidon Liambotis | USE_L10N = True |
45 | 00b4f1be | Faidon Liambotis | |
46 | 00b4f1be | Faidon Liambotis | # Absolute path to the directory that holds media. |
47 | 00b4f1be | Faidon Liambotis | # Example: "/home/media/media.lawrence.com/" |
48 | 00b4f1be | Faidon Liambotis | MEDIA_ROOT = '' |
49 | 00b4f1be | Faidon Liambotis | |
50 | 00b4f1be | Faidon Liambotis | # URL that handles the media served from MEDIA_ROOT. Make sure to use a |
51 | 00b4f1be | Faidon Liambotis | # trailing slash if there is a path component (optional in other cases). |
52 | 00b4f1be | Faidon Liambotis | # Examples: "http://media.lawrence.com", "http://example.com/media/" |
53 | 00b4f1be | Faidon Liambotis | MEDIA_URL = '' |
54 | 00b4f1be | Faidon Liambotis | |
55 | 00b4f1be | Faidon Liambotis | # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a |
56 | 00b4f1be | Faidon Liambotis | # trailing slash. |
57 | 00b4f1be | Faidon Liambotis | # Examples: "http://foo.com/media/", "/media/". |
58 | 00b4f1be | Faidon Liambotis | ADMIN_MEDIA_PREFIX = '/media/' |
59 | 00b4f1be | Faidon Liambotis | |
60 | 81357279 | Faidon Liambotis | # our REST API would prefer to be explicit about trailing slashes |
61 | 81357279 | Faidon Liambotis | APPEND_SLASH = False |
62 | 81357279 | Faidon Liambotis | |
63 | 00b4f1be | Faidon Liambotis | # Make this unique, and don't share it with anybody. |
64 | 00b4f1be | Faidon Liambotis | SECRET_KEY = 'ly6)mw6a7x%n)-e#zzk4jo6f2=uqu!1o%)2-(7lo+f9yd^k^bg' |
65 | 00b4f1be | Faidon Liambotis | |
66 | 00b4f1be | Faidon Liambotis | # List of callables that know how to import templates from various sources. |
67 | 00b4f1be | Faidon Liambotis | TEMPLATE_LOADERS = ( |
68 | 00b4f1be | Faidon Liambotis | 'django.template.loaders.filesystem.Loader', |
69 | 00b4f1be | Faidon Liambotis | 'django.template.loaders.app_directories.Loader', |
70 | 00b4f1be | Faidon Liambotis | # 'django.template.loaders.eggs.Loader', |
71 | 00b4f1be | Faidon Liambotis | ) |
72 | 00b4f1be | Faidon Liambotis | |
73 | 00b4f1be | Faidon Liambotis | MIDDLEWARE_CLASSES = ( |
74 | 3758cc42 | Faidon Liambotis | 'synnefo.middleware.StripURLMiddleware', |
75 | 00b4f1be | Faidon Liambotis | 'django.middleware.common.CommonMiddleware', |
76 | 00b4f1be | Faidon Liambotis | 'django.contrib.sessions.middleware.SessionMiddleware', |
77 | 00b4f1be | Faidon Liambotis | # 'django.middleware.csrf.CsrfViewMiddleware', |
78 | 00b4f1be | Faidon Liambotis | # 'django.contrib.auth.middleware.AuthenticationMiddleware', |
79 | 00b4f1be | Faidon Liambotis | 'django.contrib.messages.middleware.MessageMiddleware', |
80 | 00b4f1be | Faidon Liambotis | ) |
81 | 00b4f1be | Faidon Liambotis | |
82 | 00b4f1be | Faidon Liambotis | ROOT_URLCONF = 'synnefo.urls' |
83 | 00b4f1be | Faidon Liambotis | |
84 | 00b4f1be | Faidon Liambotis | TEMPLATE_DIRS = ( |
85 | 00b4f1be | Faidon Liambotis | # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". |
86 | 00b4f1be | Faidon Liambotis | # Always use forward slashes, even on Windows. |
87 | 00b4f1be | Faidon Liambotis | # Don't forget to use absolute paths, not relative paths. |
88 | 00b4f1be | Faidon Liambotis | ) |
89 | 00b4f1be | Faidon Liambotis | |
90 | 00b4f1be | Faidon Liambotis | INSTALLED_APPS = ( |
91 | 00b4f1be | Faidon Liambotis | 'django.contrib.auth', |
92 | 00b4f1be | Faidon Liambotis | 'django.contrib.contenttypes', |
93 | 00b4f1be | Faidon Liambotis | 'django.contrib.sessions', |
94 | 00b4f1be | Faidon Liambotis | 'django.contrib.sites', |
95 | 00b4f1be | Faidon Liambotis | 'django.contrib.messages', |
96 | 00b4f1be | Faidon Liambotis | # 'django.contrib.admin', |
97 | 00b4f1be | Faidon Liambotis | # 'django.contrib.admindocs', |
98 | 3758cc42 | Faidon Liambotis | 'synnefo.auth', |
99 | 00b4f1be | Faidon Liambotis | 'synnefo.api', |
100 | 00b4f1be | Faidon Liambotis | ) |
101 | 253f0c82 | Faidon Liambotis | |
102 | 253f0c82 | Faidon Liambotis | GANETI_CLUSTER_INFO = ('ganeti.example.org', 5080) |