Slightly nerf gallic naked fanatic rush.
[0ad.git] / source / tools / webservices / settings.py
blobec7fa84c61d746ab3ed0762f358cceda767b5838
1 from settings_local import DEBUG, ADMINS, DATABASES, SECRET_KEY, WFGSITE_ROOT
3 TEMPLATE_DEBUG = DEBUG
5 MANAGERS = ADMINS
7 # Local time zone for this installation. Choices can be found here:
8 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
9 # although not all choices may be available on all operating systems.
10 # On Unix systems, a value of None will cause Django to use the same
11 # timezone as the operating system.
12 # If running in a Windows environment this must be set to the same as your
13 # system time zone.
14 TIME_ZONE = 'UTC'
16 # Language code for this installation. All choices can be found here:
17 # http://www.i18nguy.com/unicode/language-identifiers.html
18 LANGUAGE_CODE = 'en-us'
20 SITE_ID = 1
22 # If you set this to False, Django will make some optimizations so as not
23 # to load the internationalization machinery.
24 USE_I18N = False
26 # If you set this to False, Django will not format dates, numbers and
27 # calendars according to the current locale
28 USE_L10N = False
30 # Absolute path to the directory that holds media.
31 # Example: "/home/media/media.lawrence.com/media/"
32 MEDIA_ROOT = ''
34 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
35 # trailing slash if there is a path component (optional in other cases).
36 # Examples: "http://media.lawrence.com", "http://example.com/media/"
37 MEDIA_URL = ''
39 # Absolute path to the directory that holds media.
40 # Example: "/home/media/media.lawrence.com/static/"
41 STATIC_ROOT = ''
43 # URL that handles the static files served from STATIC_ROOT.
44 # Example: "http://static.lawrence.com/", "http://example.com/static/"
45 STATIC_URL = '/static/'
47 # URL prefix for admin media -- CSS, JavaScript and images.
48 # Make sure to use a trailing slash.
49 # Examples: "http://foo.com/static/admin/", "/static/admin/".
50 ADMIN_MEDIA_PREFIX = '/static/admin/'
52 # A list of locations of additional static files
53 STATICFILES_DIRS = ()
55 # List of finder classes that know how to find static files in
56 # various locations.
57 STATICFILES_FINDERS = (
58 'django.contrib.staticfiles.finders.FileSystemFinder',
59 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
60 # 'django.contrib.staticfiles.finders.DefaultStorageFinder',
63 # List of callables that know how to import templates from various sources.
64 TEMPLATE_LOADERS = (
65 'django.template.loaders.filesystem.Loader',
66 'django.template.loaders.app_directories.Loader',
67 # 'django.template.loaders.eggs.Loader',
70 MIDDLEWARE_CLASSES = (
71 'django.middleware.common.CommonMiddleware',
72 'django.contrib.sessions.middleware.SessionMiddleware',
73 'django.middleware.csrf.CsrfViewMiddleware',
74 'django.contrib.auth.middleware.AuthenticationMiddleware',
75 'django.contrib.messages.middleware.MessageMiddleware',
76 # 'profilemiddleware.ProfileMiddleware',
79 PROFILE_MIDDLEWARE_SORT = ('time', 'calls')
81 ROOT_URLCONF = 'urls'
83 TEMPLATE_DIRS = (
84 # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
85 # Always use forward slashes, even on Windows.
86 # Don't forget to use absolute paths, not relative paths.
87 '%s/userreport/templates' % WFGSITE_ROOT,
90 INSTALLED_APPS = (
91 'django.contrib.auth',
92 'django.contrib.contenttypes',
93 'django.contrib.sessions',
94 'django.contrib.sites',
95 'django.contrib.messages',
96 'django.contrib.staticfiles',
97 'django.contrib.admin',
99 'userreport',
102 # A sample logging configuration. The only tangible logging
103 # performed by this configuration is to send an email to
104 # the site admins on every HTTP 500 error.
105 # See http://docs.djangoproject.com/en/dev/topics/logging for
106 # more details on how to customize your logging configuration.
107 LOGGING = {
108 'version': 1,
109 'disable_existing_loggers': False,
110 'handlers': {
111 'mail_admins': {
112 'level': 'ERROR',
113 'class': 'django.utils.log.AdminEmailHandler',
114 #'include_html': False, # TODO: use once 1.3 final is released
117 'loggers': {
118 'django.request':{
119 'handlers': ['mail_admins'],
120 'level': 'ERROR',
121 'propagate': True,