source: subversion/sites/other/tilesAtHome_tahngo/settings.py.example @ 10098

Last change on this file since 10098 was 9589, checked in by spaetz, 11 years ago

save tile base path in settings.py

File size: 3.8 KB
Line 
1# Django settings for tah project.
2
3DEBUG = True
4TEMPLATE_DEBUG = DEBUG
5
6ADMINS = (
7    # ('Your Name', 'your_email@domain.com'),
8)
9
10#------------------------------------------------
11#a little ugly place for setting up the logging perhaps.
12import logging
13if not getattr(logging, "set_up_done", None):
14    logging.basicConfig(level=logging.DEBUG,
15                    format='%(asctime)s %(levelname)s %(message)s',
16                    datefmt = "%y-%m-%d-%H:%M:%S",
17                    filename='/var/www/tah/server.log',
18                   )
19    logging.set_up_done=True
20#------------------------------------------------
21
22MANAGERS = ADMINS
23AUTH_PROFILE_MODULE="user.TahUser"
24AUTHENTICATION_BACKENDS=('django.contrib.auth.backends.ModelBackend','tah.user.auth.OSMBackend')
25
26DATABASE_ENGINE = 'sqlite3'           # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
27DATABASE_NAME = '/var/www/sspaeth.de/tah/tah.db'             # Or path to database file if using sqlite3.
28DATABASE_USER = ''             # Not used with sqlite3.
29DATABASE_PASSWORD = ''         # Not used with sqlite3.
30DATABASE_HOST = ''             # Set to empty string for localhost. Not used with sqlite3.
31DATABASE_PORT = ''             # Set to empty string for default. Not used with sqlite3.
32
33LOGIN_REDIRECT_URL="/~spaetz/user"
34
35# Local time zone for this installation. Choices can be found here:
36# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
37# although not all choices may be avilable on all operating systems.
38# If running in a Windows environment this must be set to the same as your
39# system time zone.
40TIME_ZONE = 'America/Chicago'
41
42# Language code for this installation. All choices can be found here:
43# http://www.i18nguy.com/unicode/language-identifiers.html
44LANGUAGE_CODE = 'en-us'
45
46SITE_ID = 1
47
48# If you set this to False, Django will make some optimizations so as not
49# to load the internationalization machinery.
50USE_I18N = False
51
52# Absolute path to the directory that holds media. Used for e.g. uploading files to.
53MEDIA_ROOT = '/var/www/sspaeth.de/tah'
54# where the tile files are stored:
55TILES_ROOT = '/mnt/agami/openstreetmap/tah/Tiles/'
56
57# URL that handles the media served from MEDIA_ROOT. Make sure to use a
58# trailing slash if there is a path component (optional in other cases).
59# Examples: "http://media.lawrence.com", "http://example.com/media/"
60MEDIA_URL = 'http://tah.openstreetmap.org/tah/'
61
62# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
63# trailing slash.
64# Examples: "http://foo.com/media/", "/media/".
65ADMIN_MEDIA_PREFIX = '/~spaetz/admin_media/'
66
67# Make this unique, and don't share it with anybody.
68SECRET_KEY = '#(2dlldd@za!(k$vm0jn+%s#wkfrm8v^0wl14lc&$8yb4j+e)m'
69
70# List of callables that know how to import templates from various sources.
71TEMPLATE_LOADERS = (
72    'django.template.loaders.filesystem.load_template_source',
73    'django.template.loaders.app_directories.load_template_source',
74#     'django.template.loaders.eggs.load_template_source',
75)
76
77MIDDLEWARE_CLASSES = (
78    'django.middleware.common.CommonMiddleware',
79    #translates the HTTP_X_FORWARDED_FOR to REMOTE_ADDR
80    'django.middleware.http.SetRemoteAddrFromForwardedFor',
81    'django.contrib.sessions.middleware.SessionMiddleware',
82    'django.contrib.auth.middleware.AuthenticationMiddleware',
83    'django.middleware.doc.XViewMiddleware',
84)
85
86ROOT_URLCONF = 'tah.spaetzurls'
87
88TEMPLATE_DIRS = (
89    '/var/www/sspaeth.de/tah/templates',
90    # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
91    # Don't forget to use absolute paths, not relative paths.
92)
93
94INSTALLED_APPS = (
95    'django.contrib.auth',
96    'django.contrib.contenttypes',
97    'django.contrib.sessions',
98    'django.contrib.sites',
99    'django.contrib.admin',
100    'tah.user',
101    'tah.browse',
102    'tah.requests',
103    'tah.tah_intern',
104)
Note: See TracBrowser for help on using the repository browser.