settings.py
author nishanth
Fri, 02 Jul 2010 14:26:41 +0530
changeset 88 281c4bcf848f
parent 23 f57c30096b51
permissions -rw-r--r--
now editing question is complete.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
33750f11199f initial commit.
nishanth
parents:
diff changeset
     1
# Django settings for offline project.
33750f11199f initial commit.
nishanth
parents:
diff changeset
     2
33750f11199f initial commit.
nishanth
parents:
diff changeset
     3
DEBUG = True
33750f11199f initial commit.
nishanth
parents:
diff changeset
     4
TEMPLATE_DEBUG = DEBUG
33750f11199f initial commit.
nishanth
parents:
diff changeset
     5
33750f11199f initial commit.
nishanth
parents:
diff changeset
     6
ADMINS = (
33750f11199f initial commit.
nishanth
parents:
diff changeset
     7
    # ('Your Name', 'your_email@domain.com'),
33750f11199f initial commit.
nishanth
parents:
diff changeset
     8
)
33750f11199f initial commit.
nishanth
parents:
diff changeset
     9
33750f11199f initial commit.
nishanth
parents:
diff changeset
    10
MANAGERS = ADMINS
33750f11199f initial commit.
nishanth
parents:
diff changeset
    11
1
5d921672ef41 added db to settings and made an app called feedback
nishanth
parents: 0
diff changeset
    12
DATABASE_ENGINE = 'sqlite3'           # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
23
f57c30096b51 added the link on home to attempt quiz
nishanth
parents: 12
diff changeset
    13
DATABASE_NAME = 'offline.db'             # Or path to database file if using sqlite3.
0
33750f11199f initial commit.
nishanth
parents:
diff changeset
    14
DATABASE_USER = ''             # Not used with sqlite3.
33750f11199f initial commit.
nishanth
parents:
diff changeset
    15
DATABASE_PASSWORD = ''         # Not used with sqlite3.
33750f11199f initial commit.
nishanth
parents:
diff changeset
    16
DATABASE_HOST = ''             # Set to empty string for localhost. Not used with sqlite3.
33750f11199f initial commit.
nishanth
parents:
diff changeset
    17
DATABASE_PORT = ''             # Set to empty string for default. Not used with sqlite3.
33750f11199f initial commit.
nishanth
parents:
diff changeset
    18
33750f11199f initial commit.
nishanth
parents:
diff changeset
    19
# Local time zone for this installation. Choices can be found here:
33750f11199f initial commit.
nishanth
parents:
diff changeset
    20
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
33750f11199f initial commit.
nishanth
parents:
diff changeset
    21
# although not all choices may be available on all operating systems.
33750f11199f initial commit.
nishanth
parents:
diff changeset
    22
# If running in a Windows environment this must be set to the same as your
33750f11199f initial commit.
nishanth
parents:
diff changeset
    23
# system time zone.
2
a28d06481350 updated timezone
nishanth
parents: 1
diff changeset
    24
TIME_ZONE = 'Asia/Kolkata'
0
33750f11199f initial commit.
nishanth
parents:
diff changeset
    25
33750f11199f initial commit.
nishanth
parents:
diff changeset
    26
# Language code for this installation. All choices can be found here:
33750f11199f initial commit.
nishanth
parents:
diff changeset
    27
# http://www.i18nguy.com/unicode/language-identifiers.html
33750f11199f initial commit.
nishanth
parents:
diff changeset
    28
LANGUAGE_CODE = 'en-us'
33750f11199f initial commit.
nishanth
parents:
diff changeset
    29
33750f11199f initial commit.
nishanth
parents:
diff changeset
    30
SITE_ID = 1
33750f11199f initial commit.
nishanth
parents:
diff changeset
    31
33750f11199f initial commit.
nishanth
parents:
diff changeset
    32
# If you set this to False, Django will make some optimizations so as not
33750f11199f initial commit.
nishanth
parents:
diff changeset
    33
# to load the internationalization machinery.
33750f11199f initial commit.
nishanth
parents:
diff changeset
    34
USE_I18N = True
33750f11199f initial commit.
nishanth
parents:
diff changeset
    35
33750f11199f initial commit.
nishanth
parents:
diff changeset
    36
# Absolute path to the directory that holds media.
33750f11199f initial commit.
nishanth
parents:
diff changeset
    37
# Example: "/home/media/media.lawrence.com/"
33750f11199f initial commit.
nishanth
parents:
diff changeset
    38
MEDIA_ROOT = ''
33750f11199f initial commit.
nishanth
parents:
diff changeset
    39
33750f11199f initial commit.
nishanth
parents:
diff changeset
    40
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
33750f11199f initial commit.
nishanth
parents:
diff changeset
    41
# trailing slash if there is a path component (optional in other cases).
33750f11199f initial commit.
nishanth
parents:
diff changeset
    42
# Examples: "http://media.lawrence.com", "http://example.com/media/"
33750f11199f initial commit.
nishanth
parents:
diff changeset
    43
MEDIA_URL = ''
33750f11199f initial commit.
nishanth
parents:
diff changeset
    44
33750f11199f initial commit.
nishanth
parents:
diff changeset
    45
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
33750f11199f initial commit.
nishanth
parents:
diff changeset
    46
# trailing slash.
33750f11199f initial commit.
nishanth
parents:
diff changeset
    47
# Examples: "http://foo.com/media/", "/media/".
33750f11199f initial commit.
nishanth
parents:
diff changeset
    48
ADMIN_MEDIA_PREFIX = '/media/'
33750f11199f initial commit.
nishanth
parents:
diff changeset
    49
33750f11199f initial commit.
nishanth
parents:
diff changeset
    50
# Make this unique, and don't share it with anybody.
33750f11199f initial commit.
nishanth
parents:
diff changeset
    51
SECRET_KEY = 'n10!ejc-bem&&1b+p)dw^$8w27s17k7y+w_ukhd+39u6=wwtw_'
33750f11199f initial commit.
nishanth
parents:
diff changeset
    52
33750f11199f initial commit.
nishanth
parents:
diff changeset
    53
# List of callables that know how to import templates from various sources.
33750f11199f initial commit.
nishanth
parents:
diff changeset
    54
TEMPLATE_LOADERS = (
33750f11199f initial commit.
nishanth
parents:
diff changeset
    55
    'django.template.loaders.filesystem.load_template_source',
33750f11199f initial commit.
nishanth
parents:
diff changeset
    56
    'django.template.loaders.app_directories.load_template_source',
33750f11199f initial commit.
nishanth
parents:
diff changeset
    57
#     'django.template.loaders.eggs.load_template_source',
33750f11199f initial commit.
nishanth
parents:
diff changeset
    58
)
33750f11199f initial commit.
nishanth
parents:
diff changeset
    59
33750f11199f initial commit.
nishanth
parents:
diff changeset
    60
MIDDLEWARE_CLASSES = (
33750f11199f initial commit.
nishanth
parents:
diff changeset
    61
    'django.middleware.common.CommonMiddleware',
33750f11199f initial commit.
nishanth
parents:
diff changeset
    62
    'django.contrib.sessions.middleware.SessionMiddleware',
33750f11199f initial commit.
nishanth
parents:
diff changeset
    63
    'django.contrib.auth.middleware.AuthenticationMiddleware',
33750f11199f initial commit.
nishanth
parents:
diff changeset
    64
)
33750f11199f initial commit.
nishanth
parents:
diff changeset
    65
33750f11199f initial commit.
nishanth
parents:
diff changeset
    66
ROOT_URLCONF = 'offline.urls'
33750f11199f initial commit.
nishanth
parents:
diff changeset
    67
33750f11199f initial commit.
nishanth
parents:
diff changeset
    68
TEMPLATE_DIRS = (
33750f11199f initial commit.
nishanth
parents:
diff changeset
    69
    # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
33750f11199f initial commit.
nishanth
parents:
diff changeset
    70
    # Always use forward slashes, even on Windows.
33750f11199f initial commit.
nishanth
parents:
diff changeset
    71
    # Don't forget to use absolute paths, not relative paths.
5
9a671f3eb24c created the add feedback functionality
nishanth
parents: 2
diff changeset
    72
    './templates',
0
33750f11199f initial commit.
nishanth
parents:
diff changeset
    73
)
33750f11199f initial commit.
nishanth
parents:
diff changeset
    74
33750f11199f initial commit.
nishanth
parents:
diff changeset
    75
INSTALLED_APPS = (
33750f11199f initial commit.
nishanth
parents:
diff changeset
    76
    'django.contrib.auth',
33750f11199f initial commit.
nishanth
parents:
diff changeset
    77
    'django.contrib.contenttypes',
33750f11199f initial commit.
nishanth
parents:
diff changeset
    78
    'django.contrib.sessions',
33750f11199f initial commit.
nishanth
parents:
diff changeset
    79
    'django.contrib.sites',
5
9a671f3eb24c created the add feedback functionality
nishanth
parents: 2
diff changeset
    80
    'offline.event',
9a671f3eb24c created the add feedback functionality
nishanth
parents: 2
diff changeset
    81
    'offline.feedback',
12
81cd0140a0f2 created the register user functionality.
nishanth
parents: 7
diff changeset
    82
    'offline.quiz',
0
33750f11199f initial commit.
nishanth
parents:
diff changeset
    83
)
7
dfedb369f32e first fixed on the urls and then gave the admin_key in settings and then created main admin page.
nishanth
parents: 5
diff changeset
    84
12
81cd0140a0f2 created the register user functionality.
nishanth
parents: 7
diff changeset
    85
AUTH_PROFILE_MODULE = "quiz.Profile"
7
dfedb369f32e first fixed on the urls and then gave the admin_key in settings and then created main admin page.
nishanth
parents: 5
diff changeset
    86
ADMIN_KEY = 'ditchax'