settings.py
author anoop
Sat, 05 Jun 2010 19:07:22 +0530
branchanoop
changeset 46 d5c888744405
parent 43 d14bda103817
child 64 3650417b0fda
permissions -rw-r--r--
added a new left block in base.html.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
     1
# Django settings for sage_days project.
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
     2
43
d14bda103817 made debug in settings False.
nishanth
parents: 41
diff changeset
     3
DEBUG = False
0
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
     4
TEMPLATE_DEBUG = DEBUG
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
     5
26
212fcba4459e changed the app to work with apache + added base.html, and did needed changes.
anoop
parents: 23
diff changeset
     6
ADMINS = (('Anoop Jacob Thomas','anoop@fossee.in')
0
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
     7
    # ('Your Name', 'your_email@domain.com'),
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
     8
)
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
     9
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    10
MANAGERS = ADMINS
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    11
2
0c8f277f2ea3 finalised the settings.py
nishanth
parents: 1
diff changeset
    12
DATABASE_ENGINE = 'sqlite3'           # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
35
20d3b4230e4f modified db path and templates dir path
nishanth
parents: 26
diff changeset
    13
DATABASE_NAME = 'sage.db'             # Or path to database file if using sqlite3.
0
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    14
DATABASE_USER = ''             # Not used with sqlite3.
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    15
DATABASE_PASSWORD = ''         # Not used with sqlite3.
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    16
DATABASE_HOST = ''             # Set to empty string for localhost. Not used with sqlite3.
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    17
DATABASE_PORT = ''             # Set to empty string for default. Not used with sqlite3.
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    18
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    19
# Local time zone for this installation. Choices can be found here:
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    20
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    21
# although not all choices may be available on all operating systems.
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    22
# If running in a Windows environment this must be set to the same as your
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    23
# system time zone.
1
76e7f41b03ef added apache url prefix which is going to be used in urls.py
nishanth
parents: 0
diff changeset
    24
TIME_ZONE = 'Asia/Kolkata'
0
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    25
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    26
# Language code for this installation. All choices can be found here:
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    27
# http://www.i18nguy.com/unicode/language-identifiers.html
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    28
LANGUAGE_CODE = 'en-us'
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    29
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    30
SITE_ID = 1
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    31
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    32
# If you set this to False, Django will make some optimizations so as not
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    33
# to load the internationalization machinery.
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    34
USE_I18N = True
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    35
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    36
# Absolute path to the directory that holds media.
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    37
# Example: "/home/media/media.lawrence.com/"
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    38
MEDIA_ROOT = ''
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    39
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    40
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    41
# trailing slash if there is a path component (optional in other cases).
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    42
# Examples: "http://media.lawrence.com", "http://example.com/media/"
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    43
MEDIA_URL = ''
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    44
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    45
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    46
# trailing slash.
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    47
# Examples: "http://foo.com/media/", "/media/".
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    48
ADMIN_MEDIA_PREFIX = '/media/'
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    49
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    50
# Make this unique, and don't share it with anybody.
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    51
SECRET_KEY = '-=fu_-i3irxhuo+ky7b9*s$asglx1-!pupbw^y%g#j%&v=y)y2'
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    52
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    53
# List of callables that know how to import templates from various sources.
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    54
TEMPLATE_LOADERS = (
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    55
    'django.template.loaders.filesystem.load_template_source',
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    56
    'django.template.loaders.app_directories.load_template_source',
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    57
#     'django.template.loaders.eggs.load_template_source',
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    58
)
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    59
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    60
MIDDLEWARE_CLASSES = (
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    61
    'django.middleware.common.CommonMiddleware',
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    62
    'django.contrib.sessions.middleware.SessionMiddleware',
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    63
    'django.contrib.auth.middleware.AuthenticationMiddleware',
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    64
)
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    65
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    66
ROOT_URLCONF = 'sage_days.urls'
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    67
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    68
TEMPLATE_DIRS = (
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    69
    # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    70
    # Always use forward slashes, even on Windows.
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    71
    # Don't forget to use absolute paths, not relative paths.
35
20d3b4230e4f modified db path and templates dir path
nishanth
parents: 26
diff changeset
    72
    './templates',
0
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    73
)
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    74
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    75
INSTALLED_APPS = (
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    76
    'django.contrib.auth',
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    77
    'django.contrib.contenttypes',
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    78
    'django.contrib.sessions',
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    79
    'django.contrib.sites',
2
0c8f277f2ea3 finalised the settings.py
nishanth
parents: 1
diff changeset
    80
    'django.contrib.admin',
4
ac7eaa878437 created app named sdi which means Sage Days India
nishanth
parents: 2
diff changeset
    81
    'sage_days.sdi',
41
651b341fd555 added captcha for registration
nishanth
parents: 35
diff changeset
    82
    'captcha',
0
d2b78840bfcb initial commit
nishanth
parents:
diff changeset
    83
)
1
76e7f41b03ef added apache url prefix which is going to be used in urls.py
nishanth
parents: 0
diff changeset
    84
26
212fcba4459e changed the app to work with apache + added base.html, and did needed changes.
anoop
parents: 23
diff changeset
    85
APACHE_URL_PREFIX = "sage_days"
23
2aae8293f3a7 added list statiscs page
nishanth
parents: 4
diff changeset
    86
ADMIN_URL_PREFIX = "ditchax"