Ticket #2203: settings.py

File settings.py, 2.7 KB (added by bahamut@…, 18 years ago)

Settings file for my application. Date and time formats are not respected in admin site.

Line 
1# -*- coding: utf-8 -*-
2# Django settings for longinus project.
3
4DEBUG = True
5TEMPLATE_DEBUG = DEBUG
6
7ADMINS = (
8 ('Jean-Francois Roy', 'bahamut@macstorm.org'),
9)
10
11MANAGERS = ADMINS
12
13DATABASE_ENGINE = 'sqlite3' # 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'.
14DATABASE_NAME = './longinus_db' # Or path to database file if using sqlite3.
15DATABASE_USER = '' # Not used with sqlite3.
16DATABASE_PASSWORD = '' # Not used with sqlite3.
17DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3.
18DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3.
19
20# Local time zone for this installation. All choices can be found here:
21# http://www.postgresql.org/docs/current/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE
22TIME_ZONE = 'America/Montreal'
23
24# Configure date and time formats to be sane
25DATETIME_FORMAT = 'F d, Y @ H:i:s O'
26TIME_FORMAT = 'H:i:s O'
27
28# Language code for this installation. All choices can be found here:
29# http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes
30# http://blogs.law.harvard.edu/tech/stories/storyReader$15
31LANGUAGE_CODE = 'en-us'
32
33SITE_ID = 1
34
35# Absolute path to the directory that holds media.
36# Example: "/home/media/media.lawrence.com/"
37MEDIA_ROOT = './media'
38
39# URL that handles the media served from MEDIA_ROOT.
40# Example: "http://media.lawrence.com"
41MEDIA_URL = 'http://127.0.0.1:8000/media/'
42
43# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
44# trailing slash.
45# Examples: "http://foo.com/media/", "/media/".
46ADMIN_MEDIA_PREFIX = '/media/'
47
48# Make this unique, and don't share it with anybody.
49SECRET_KEY = '<removed>'
50
51# List of callables that know how to import templates from various sources.
52TEMPLATE_LOADERS = (
53 'django.template.loaders.filesystem.load_template_source',
54 'django.template.loaders.app_directories.load_template_source',
55# 'django.template.loaders.eggs.load_template_source',
56)
57
58MIDDLEWARE_CLASSES = (
59 'django.middleware.gzip.GZipMiddleware',
60 'django.middleware.common.CommonMiddleware',
61 'django.contrib.sessions.middleware.SessionMiddleware',
62 'django.contrib.auth.middleware.AuthenticationMiddleware',
63 'django.middleware.doc.XViewMiddleware',
64 'django.middleware.transaction.TransactionMiddleware',
65)
66
67ROOT_URLCONF = 'longinus.urls'
68
69TEMPLATE_DIRS = (
70 # Put strings here, like "/home/html/django_templates".
71 # Always use forward slashes, even on Windows.
72 './templates',
73)
74
75INSTALLED_APPS = (
76 'django.contrib.auth',
77 'django.contrib.contenttypes',
78 'django.contrib.sessions',
79 'django.contrib.sites',
80 'django.contrib.admin',
81 'longinus.raids',
82 'longinus.officers',
83)
Back to Top