source: src/django_gheat/samples/persisted/settings.py@ 9051

Last change on this file since 9051 was 9051, checked in by rick, 14 years ago

Cosmetic cleanups to make code better readable.

File size: 3.0 KB
Line 
1# Django settings for persisted project.
2
3import os
4PROJECT_HOME = os.path.dirname(__file__)
5
6DEBUG = True
7TEMPLATE_DEBUG = DEBUG
8
9ADMINS = (
10 ('Test Admin', 'admin@example.org'),
11)
12
13MANAGERS = ADMINS
14
15DATABASES = {
16 'default': {
17 'ENGINE': 'django.db.backends.mysql',
18 'NAME': 'project_heatmap',
19 'USER': 'root',
20 'PASSWORD': 'password',
21 'HOST': 'localhost',
22 'PORT': '3306',
23 }
24}
25
26# Local time zone for this installation. Choices can be found here:
27# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
28# although not all choices may be available on all operating systems.
29# If running in a Windows environment this must be set to the same as your
30# system time zone.
31TIME_ZONE = 'America/Chicago'
32
33# Language code for this installation. All choices can be found here:
34# http://www.i18nguy.com/unicode/language-identifiers.html
35LANGUAGE_CODE = 'en-us'
36
37SITE_ID = 1
38
39# If you set this to False, Django will make some optimizations so as not
40# to load the internationalization machinery.
41USE_I18N = True
42
43# Absolute path to the directory that holds media.
44# Example: "/home/media/media.lawrence.com/"
45MEDIA_ROOT = ''
46
47# URL that handles the media served from MEDIA_ROOT. Make sure to use a
48# trailing slash if there is a path component (optional in other cases).
49# Examples: "http://media.lawrence.com", "http://example.com/media/"
50MEDIA_URL = ''
51
52# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
53# trailing slash.
54# Examples: "http://foo.com/media/", "/media/".
55ADMIN_MEDIA_PREFIX = '/media/'
56
57# Make this unique, and don't share it with anybody.
58SECRET_KEY = '=wg@x19kr@26sibiaynb9ax5ddp1&yu^+$3n++^_lz1ms80syb'
59
60# List of callables that know how to import templates from various sources.
61TEMPLATE_LOADERS = (
62 'django.template.loaders.filesystem.load_template_source',
63 'django.template.loaders.app_directories.load_template_source',
64 'django.template.loaders.eggs.load_template_source',
65)
66
67MIDDLEWARE_CLASSES = (
68 'django.middleware.common.CommonMiddleware',
69 'django.contrib.sessions.middleware.SessionMiddleware',
70 'django.contrib.auth.middleware.AuthenticationMiddleware',
71)
72
73ROOT_URLCONF = 'persisted.urls'
74
75TEMPLATE_DIRS = (
76 # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
77 # Always use forward slashes, even on Windows.
78 # Don't forget to use absolute paths, not relative paths.
79 os.path.join(PROJECT_HOME, 'templates'),
80)
81
82INSTALLED_APPS = (
83 'django.contrib.admin',
84 'django.contrib.auth',
85 'django.contrib.contenttypes',
86 'django.contrib.sessions',
87 'django.contrib.sites',
88 'django_extensions',
89 'gheat',
90 'home',
91)
92
93#GOOGLE_MAPS_KEY = 'ABQIAAAA2icoFs7d_hisx8EBdZy-mxQF3fr7joqA35-x6JbT4Kx-pk-_6xRkPVambEqUO33n_8g9KWVaLKq8UA' # localhost
94#GOOGLE_MAPS_KEY = 'ABQIAAAAnfs7bKE82qgb3Zc2YyS-oBT2yXp_ZAY8_ufC3CFXhHIE1NvwkxSySz_REpPq-4WZA27OwgbtyR3VcA' # external ip
95GOOGLE_MAPS_KEY = 'ABQIAAAA6NuvWGazX80RVrkSkvrUXBTpH3CbXHjuCVmaTc5MkkU4wO1RRhSZXiYEMqjgwJ9gi_PC8AA-dDGz6g' # 127.0.0.1:8000
96
97
98
Note: See TracBrowser for help on using the repository browser.