settings.py
author nishanth
Thu, 04 Feb 2010 22:30:30 +0530
changeset 19 c52f7cde9861
parent 12 a93eebabfeb1
child 29 8baf12083a1e
permissions -rw-r--r--
added events/task.py and templates/error.html.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
     1
# Django settings for pytask project.
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
     2
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
     3
DEBUG = True
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
     4
TEMPLATE_DEBUG = DEBUG
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
     5
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
     6
ADMINS = (
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
     7
    # ('Your Name', 'your_email@domain.com'),
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
     8
)
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
     9
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    10
MANAGERS = ADMINS
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    11
1
7818992cbf83 Created taskapp and added data to models.py and edited settings.py to make it usable in admin interface.
Nishanth <nishanth@fossee.in>
parents: 0
diff changeset
    12
DATABASE_ENGINE = 'sqlite3'           # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
10
bf0cbea1bd12 removed views.py and made it a package. added auth_profile to settings.py
nishanth
parents: 3
diff changeset
    13
DATABASE_NAME = '../../pytask.db'             # Or path to database file if using sqlite3.
0
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    14
DATABASE_USER = ''             # Not used with sqlite3.
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    15
DATABASE_PASSWORD = ''         # Not used with sqlite3.
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    16
DATABASE_HOST = ''             # Set to empty string for localhost. Not used with sqlite3.
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    17
DATABASE_PORT = ''             # Set to empty string for default. Not used with sqlite3.
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    18
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    19
# Local time zone for this installation. Choices can be found here:
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    20
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    21
# although not all choices may be available on all operating systems.
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    22
# If running in a Windows environment this must be set to the same as your
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    23
# system time zone.
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    24
TIME_ZONE = 'America/Chicago'
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    25
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    26
# Language code for this installation. All choices can be found here:
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    27
# http://www.i18nguy.com/unicode/language-identifiers.html
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    28
LANGUAGE_CODE = 'en-us'
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    29
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    30
SITE_ID = 1
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    31
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    32
# If you set this to False, Django will make some optimizations so as not
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    33
# to load the internationalization machinery.
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    34
USE_I18N = True
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    35
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    36
# Absolute path to the directory that holds media.
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    37
# Example: "/home/media/media.lawrence.com/"
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    38
MEDIA_ROOT = ''
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    39
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    40
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    41
# trailing slash if there is a path component (optional in other cases).
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    42
# Examples: "http://media.lawrence.com", "http://example.com/media/"
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    43
MEDIA_URL = ''
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    44
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    45
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    46
# trailing slash.
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    47
# Examples: "http://foo.com/media/", "/media/".
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    48
ADMIN_MEDIA_PREFIX = '/media/'
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    49
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    50
# Make this unique, and don't share it with anybody.
10
bf0cbea1bd12 removed views.py and made it a package. added auth_profile to settings.py
nishanth
parents: 3
diff changeset
    51
SECRET_KEY = '#7bo8^p1gc=$85gv09z5d_d9-8xk1p=me7_c^3ito@jjth6^^w'
0
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    52
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    53
# List of callables that know how to import templates from various sources.
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    54
TEMPLATE_LOADERS = (
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    55
    'django.template.loaders.filesystem.load_template_source',
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    56
    'django.template.loaders.app_directories.load_template_source',
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    57
#     'django.template.loaders.eggs.load_template_source',
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    58
)
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    59
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    60
MIDDLEWARE_CLASSES = (
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    61
    'django.middleware.common.CommonMiddleware',
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    62
    'django.contrib.sessions.middleware.SessionMiddleware',
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    63
    'django.contrib.auth.middleware.AuthenticationMiddleware',
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    64
)
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    65
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    66
ROOT_URLCONF = 'pytask.urls'
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    67
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    68
TEMPLATE_DIRS = (
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    69
    # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    70
    # Always use forward slashes, even on Windows.
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    71
    # Don't forget to use absolute paths, not relative paths.
10
bf0cbea1bd12 removed views.py and made it a package. added auth_profile to settings.py
nishanth
parents: 3
diff changeset
    72
    './templates',
0
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    73
)
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    74
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    75
INSTALLED_APPS = (
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    76
    'django.contrib.auth',
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    77
    'django.contrib.contenttypes',
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    78
    'django.contrib.sessions',
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    79
    'django.contrib.sites',
1
7818992cbf83 Created taskapp and added data to models.py and edited settings.py to make it usable in admin interface.
Nishanth <nishanth@fossee.in>
parents: 0
diff changeset
    80
    'django.contrib.admin',
7818992cbf83 Created taskapp and added data to models.py and edited settings.py to make it usable in admin interface.
Nishanth <nishanth@fossee.in>
parents: 0
diff changeset
    81
    'pytask.taskapp',
0
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    82
)
10
bf0cbea1bd12 removed views.py and made it a package. added auth_profile to settings.py
nishanth
parents: 3
diff changeset
    83
12
a93eebabfeb1 created forms, views, templates, actions for home_page, browse_task.
nishanth
parents: 10
diff changeset
    84
AUTH_PROFILE_MODULE = 'taskapp.Profile'