Mercurial > public > sg101
comparison gpp/settings.py @ 1:dbd703f7d63a
Initial import of sg101 stuff from private repository.
author | gremmie |
---|---|
date | Mon, 06 Apr 2009 02:43:12 +0000 |
parents | |
children | b6263ac72052 |
comparison
equal
deleted
inserted
replaced
0:900ba3c7b765 | 1:dbd703f7d63a |
---|---|
1 # Django settings for gpp project. | |
2 | |
3 import os | |
4 import platform | |
5 import local_settings | |
6 project_path = os.path.abspath(os.path.split(__file__)[0]) | |
7 | |
8 DEBUG = local_settings.DEBUG | |
9 TEMPLATE_DEBUG = DEBUG | |
10 | |
11 ADMINS = ( | |
12 ('Brian Neal', 'admin@surfguitar101.com'), | |
13 ) | |
14 | |
15 AUTH_PROFILE_MODULE = 'bio.userprofile' | |
16 | |
17 MANAGERS = ADMINS | |
18 | |
19 DATABASE_ENGINE = local_settings.DATABASE_ENGINE | |
20 DATABASE_NAME = local_settings.DATABASE_NAME | |
21 DATABASE_USER = local_settings.DATABASE_USER | |
22 DATABASE_PASSWORD = local_settings.DATABASE_PASSWORD | |
23 DATABASE_HOST = local_settings.DATABASE_HOST | |
24 DATABASE_PORT = local_settings.DATABASE_PORT | |
25 | |
26 INTERNAL_IPS = local_settings.INTERNAL_IPS | |
27 | |
28 # Local time zone for this installation. Choices can be found here: | |
29 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name | |
30 # although not all choices may be available on all operating systems. | |
31 # If running in a Windows environment this must be set to the same as your | |
32 # system time zone. | |
33 TIME_ZONE = local_settings.TIME_ZONE | |
34 | |
35 # Language code for this installation. All choices can be found here: | |
36 # http://www.i18nguy.com/unicode/language-identifiers.html | |
37 LANGUAGE_CODE = 'en-us' | |
38 | |
39 SITE_ID = local_settings.SITE_ID | |
40 | |
41 # If you set this to False, Django will make some optimizations so as not | |
42 # to load the internationalization machinery. | |
43 USE_I18N = False | |
44 | |
45 # Absolute path to the directory that holds media. | |
46 # Example: "/home/media/media.lawrence.com/" | |
47 MEDIA_ROOT = local_settings.MEDIA_ROOT | |
48 | |
49 # URL that handles the media served from MEDIA_ROOT. Make sure to use a | |
50 # trailing slash if there is a path component (optional in other cases). | |
51 # Examples: "http://media.lawrence.com", "http://example.com/media/" | |
52 MEDIA_URL = local_settings.MEDIA_URL | |
53 | |
54 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a | |
55 # trailing slash. | |
56 # Examples: "http://foo.com/media/", "/media/". | |
57 ADMIN_MEDIA_PREFIX = local_settings.ADMIN_MEDIA_PREFIX | |
58 | |
59 # Make this unique, and don't share it with anybody. | |
60 SECRET_KEY = local_settings.SECRET_KEY | |
61 | |
62 # List of callables that know how to import templates from various sources. | |
63 TEMPLATE_LOADERS = ( | |
64 'django.template.loaders.filesystem.load_template_source', | |
65 'django.template.loaders.app_directories.load_template_source', | |
66 # 'django.template.loaders.eggs.load_template_source', | |
67 ) | |
68 | |
69 MIDDLEWARE_CLASSES = ( | |
70 'django.middleware.common.CommonMiddleware', | |
71 'django.contrib.sessions.middleware.SessionMiddleware', | |
72 'django.contrib.auth.middleware.AuthenticationMiddleware', | |
73 ) | |
74 | |
75 ROOT_URLCONF = 'gpp.urls' | |
76 | |
77 TEMPLATE_DIRS = ( | |
78 # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". | |
79 # Always use forward slashes, even on Windows. | |
80 # Don't forget to use absolute paths, not relative paths. | |
81 os.path.join(project_path, 'templates'), | |
82 ) | |
83 | |
84 TEMPLATE_CONTEXT_PROCESSORS = ( | |
85 "django.core.context_processors.auth", | |
86 "django.core.context_processors.debug", | |
87 "django.core.context_processors.request", | |
88 "django.core.context_processors.media" | |
89 ) | |
90 | |
91 INSTALLED_APPS = ( | |
92 'django.contrib.admin', | |
93 'django.contrib.admindocs', | |
94 'django.contrib.auth', | |
95 'django.contrib.contenttypes', | |
96 'django.contrib.sessions', | |
97 'django.contrib.sites', | |
98 'django.contrib.markup', | |
99 'tagging', | |
100 'accounts', | |
101 'bio', | |
102 'bulletins', | |
103 'comments', | |
104 'contact', | |
105 'core', | |
106 'downloads', | |
107 'gcalendar', | |
108 'irc', | |
109 'legal', | |
110 'membermap', | |
111 'messages', | |
112 'news', | |
113 'podcast', | |
114 'polls', | |
115 'potd', | |
116 'shoutbox', | |
117 'smiley', | |
118 'weblinks', | |
119 ) | |
120 | |
121 LOGIN_URL = '/accounts/login/' | |
122 LOGIN_REDIRECT_URL = '/profile/me/' | |
123 LOGOUT_URL = '/accounts/logout/' | |
124 | |
125 FILE_UPLOAD_PERMISSIONS = 0640 | |
126 | |
127 ####################################################################### | |
128 # Tagging Specific Settings | |
129 ####################################################################### | |
130 FORCE_LOWERCASE_TAGS = True | |
131 MAX_TAG_LENGTH = 50 | |
132 | |
133 ####################################################################### | |
134 # GPP Specific Settings | |
135 ####################################################################### | |
136 GPP_LOG_LEVEL = 0 | |
137 GPP_SEND_EMAIL = False | |
138 GPP_NO_REPLY_EMAIL = 'no_reply' | |
139 AVATAR_DIR = 'avatars' | |
140 MAX_AVATAR_SIZE_BYTES = 2 * 1024 * 1024 | |
141 MAX_AVATAR_SIZE_PIXELS = 100 | |
142 AVATAR_DEFAULT_URL = MEDIA_URL + AVATAR_DIR + '/default.png' |