Mercurial > hg > savane-forge
annotate savane/settings.py @ 18:5279f45cc97c
Commented the admin app, I think that isn't useful for now
author | Jonathan Gonzalez V <zeus@lunareja.(none)> |
---|---|
date | Thu, 21 May 2009 16:48:14 -0400 |
parents | fb01d3766574 |
children | f5794b00991e |
rev | line source |
---|---|
13
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
1 # Django settings for savane project. |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
2 |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
3 DEBUG = True |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
4 TEMPLATE_DEBUG = DEBUG |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
5 |
15
fb01d3766574
Added savane_user app to handle all the user things
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
13
diff
changeset
|
6 SAVANE_ROOT = '/home/zeus/framework.git/'; |
13
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
7 |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
8 ADMINS = ( |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
9 # ('Your Name', 'your_email@domain.com'), |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
10 ) |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
11 |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
12 MANAGERS = ADMINS |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
13 |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
14 DATABASE_ENGINE = 'mysql' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. |
15
fb01d3766574
Added savane_user app to handle all the user things
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
13
diff
changeset
|
15 DATABASE_NAME = 'savane' # Or path to database file if using sqlite3. |
13
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
16 DATABASE_USER = 'root' # Not used with sqlite3. |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
17 DATABASE_PASSWORD = '' # Not used with sqlite3. |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
18 DATABASE_HOST = 'localhost' # Set to empty string for localhost. Not used with sqlite3. |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
19 DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3. |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
20 |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
21 # Local time zone for this installation. Choices can be found here: |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
22 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
23 # although not all choices may be available on all operating systems. |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
24 # If running in a Windows environment this must be set to the same as your |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
25 # system time zone. |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
26 TIME_ZONE = 'America/Chicago' |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
27 |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
28 # Language code for this installation. All choices can be found here: |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
29 # http://www.i18nguy.com/unicode/language-identifiers.html |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
30 LANGUAGE_CODE = 'en-us' |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
31 |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
32 SITE_ID = 1 |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
33 |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
34 # If you set this to False, Django will make some optimizations so as not |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
35 # to load the internationalization machinery. |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
36 USE_I18N = True |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
37 |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
38 # Absolute path to the directory that holds media. |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
39 # Example: "/home/media/media.lawrence.com/" |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
40 MEDIA_ROOT = '' |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
41 |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
42 # URL that handles the media served from MEDIA_ROOT. Make sure to use a |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
43 # trailing slash if there is a path component (optional in other cases). |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
44 # Examples: "http://media.lawrence.com", "http://example.com/media/" |
15
fb01d3766574
Added savane_user app to handle all the user things
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
13
diff
changeset
|
45 MEDIA_URL = 'http://savannah.local:8000' |
13
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
46 |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
47 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
48 # trailing slash. |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
49 # Examples: "http://foo.com/media/", "/media/". |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
50 ADMIN_MEDIA_PREFIX = '/media/' |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
51 |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
52 # Make this unique, and don't share it with anybody. |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
53 SECRET_KEY = 'r0u=mcmr$46vf6y3x4!lti5pza)p-3y@*u%5k!71)ie)1dha@$' |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
54 |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
55 # List of callables that know how to import templates from various sources. |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
56 TEMPLATE_LOADERS = ( |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
57 'django.template.loaders.filesystem.load_template_source', |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
58 'django.template.loaders.app_directories.load_template_source', |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
59 # 'django.template.loaders.eggs.load_template_source', |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
60 ) |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
61 |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
62 MIDDLEWARE_CLASSES = ( |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
63 'django.middleware.common.CommonMiddleware', |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
64 'django.contrib.sessions.middleware.SessionMiddleware', |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
65 'django.contrib.auth.middleware.AuthenticationMiddleware', |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
66 ) |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
67 |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
68 ROOT_URLCONF = 'savane.urls' |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
69 |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
70 TEMPLATE_DIRS = ( |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
71 # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
72 # Always use forward slashes, even on Windows. |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
73 # Don't forget to use absolute paths, not relative paths. |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
74 SAVANE_ROOT + 'template/', |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
75 ) |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
76 |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
77 INSTALLED_APPS = ( |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
78 'django.contrib.auth', |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
79 'django.contrib.contenttypes', |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
80 'django.contrib.sessions', |
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
81 'django.contrib.sites', |
18
5279f45cc97c
Commented the admin app, I think that isn't useful for now
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
15
diff
changeset
|
82 # 'django.contrib.admin', |
15
fb01d3766574
Added savane_user app to handle all the user things
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
13
diff
changeset
|
83 'savane.savane_user', |
13
533dccc57aeb
Initial import with the django framework
Jonathan Gonzalez V <zeus@lunareja.(none)>
parents:
diff
changeset
|
84 ) |