settings.py
author Nishanth Amuluru <nishanth@fossee.in>
Fri, 07 Jan 2011 00:46:13 +0530
changeset 11 82e13f7d5877
parent 7 9e963a791df1
child 22 8b891483e052
permissions -rwxr-xr-x
Included department co-ordinators as a level in hierarchy
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     1
# Django settings for pytask project.
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     2
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     3
DEBUG = True
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     4
TEMPLATE_DEBUG = DEBUG
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     5
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     6
ADMINS = (
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     7
    # ('Your Name', 'your_email@domain.com'),
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     8
)
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     9
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    10
MANAGERS = ADMINS
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    11
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    12
DATABASES = {
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    13
    'default': {
1
29ea3d4764c8 Updated the settings file
Nishanth Amuluru <nishanth@fossee.in>
parents: 0
diff changeset
    14
        'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
29ea3d4764c8 Updated the settings file
Nishanth Amuluru <nishanth@fossee.in>
parents: 0
diff changeset
    15
        'NAME': './pytask',                      # Or path to database file if using sqlite3.
0
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    16
        'USER': '',                      # Not used with sqlite3.
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    17
        'PASSWORD': '',                  # Not used with sqlite3.
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    18
        'HOST': '',                      # Set to empty string for localhost. Not used with sqlite3.
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    19
        'PORT': '',                      # Set to empty string for default. Not used with sqlite3.
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    20
    }
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    21
}
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    22
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    23
# Local time zone for this installation. Choices can be found here:
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    24
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    25
# although not all choices may be available on all operating systems.
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    26
# On Unix systems, a value of None will cause Django to use the same
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    27
# timezone as the operating system.
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    28
# If running in a Windows environment this must be set to the same as your
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    29
# system time zone.
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    30
TIME_ZONE = 'America/Chicago'
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    31
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    32
# Language code for this installation. All choices can be found here:
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    33
# http://www.i18nguy.com/unicode/language-identifiers.html
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    34
LANGUAGE_CODE = 'en-us'
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    35
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    36
SITE_ID = 1
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    37
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    38
# If you set this to False, Django will make some optimizations so as not
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    39
# to load the internationalization machinery.
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    40
USE_I18N = True
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    41
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    42
# If you set this to False, Django will not format dates, numbers and
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    43
# calendars according to the current locale
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    44
USE_L10N = True
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    45
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    46
# Absolute filesystem path to the directory that will hold user-uploaded files.
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    47
# Example: "/home/media/media.lawrence.com/"
1
29ea3d4764c8 Updated the settings file
Nishanth Amuluru <nishanth@fossee.in>
parents: 0
diff changeset
    48
MEDIA_ROOT = './media/'
0
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    49
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    50
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    51
# trailing slash if there is a path component (optional in other cases).
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    52
# Examples: "http://media.lawrence.com", "http://example.com/media/"
1
29ea3d4764c8 Updated the settings file
Nishanth Amuluru <nishanth@fossee.in>
parents: 0
diff changeset
    53
MEDIA_URL = '/media/'
0
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    54
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    55
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    56
# trailing slash.
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    57
# Examples: "http://foo.com/media/", "/media/".
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    58
ADMIN_MEDIA_PREFIX = '/media/'
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    59
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    60
# Make this unique, and don't share it with anybody.
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    61
SECRET_KEY = '^ww=xk&idt)=03kqg*fz8x%=dqbhh1kd2z=f%$m@r9_+9b=&x='
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    62
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    63
# List of callables that know how to import templates from various sources.
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    64
TEMPLATE_LOADERS = (
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    65
    'django.template.loaders.filesystem.Loader',
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    66
    'django.template.loaders.app_directories.Loader',
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    67
#     'django.template.loaders.eggs.Loader',
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    68
)
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    69
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    70
MIDDLEWARE_CLASSES = (
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    71
    'django.middleware.common.CommonMiddleware',
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    72
    'django.contrib.sessions.middleware.SessionMiddleware',
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    73
    'django.middleware.csrf.CsrfViewMiddleware',
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    74
    'django.contrib.auth.middleware.AuthenticationMiddleware',
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    75
    'django.contrib.messages.middleware.MessageMiddleware',
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    76
)
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    77
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    78
ROOT_URLCONF = 'pytask.urls'
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    79
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    80
TEMPLATE_DIRS = (
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    81
    # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    82
    # Always use forward slashes, even on Windows.
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    83
    # Don't forget to use absolute paths, not relative paths.
1
29ea3d4764c8 Updated the settings file
Nishanth Amuluru <nishanth@fossee.in>
parents: 0
diff changeset
    84
    './templates',
0
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    85
)
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    86
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    87
INSTALLED_APPS = (
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    88
    'django.contrib.auth',
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    89
    'django.contrib.contenttypes',
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    90
    'django.contrib.sessions',
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    91
    'django.contrib.sites',
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    92
    'django.contrib.messages',
1
29ea3d4764c8 Updated the settings file
Nishanth Amuluru <nishanth@fossee.in>
parents: 0
diff changeset
    93
    'registration',
29ea3d4764c8 Updated the settings file
Nishanth Amuluru <nishanth@fossee.in>
parents: 0
diff changeset
    94
    'tagging',
6
132217e04b32 Fixed a typo
Nishanth Amuluru <nishanth@fossee.in>
parents: 1
diff changeset
    95
    'pytask.profile',
0
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    96
    # Uncomment the next line to enable the admin:
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    97
    # 'django.contrib.admin',
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    98
    # Uncomment the next line to enable admin documentation:
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    99
    # 'django.contrib.admindocs',
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
   100
)
7
9e963a791df1 Added profile module to settings
Nishanth Amuluru <nishanth@fossee.in>
parents: 6
diff changeset
   101
9e963a791df1 Added profile module to settings
Nishanth Amuluru <nishanth@fossee.in>
parents: 6
diff changeset
   102
AUTH_PROFILE_MODULE = 'profile.Profile'