settings.py.template
author Madhusudan.C.S <madhusudancs@gmail.com>
Mon, 12 Oct 2009 20:10:20 +0530
changeset 31 aa68a264b036
parent 26 207e95f41820
child 35 5715611f76e1
permissions -rwxr-xr-x
Reverted back the failed activation message template.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     1
# Django settings for scipy project.
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     2
5
7358eeae14d8 Rough website for Scipy.
Shantanu <shantanu@fossee.in>
parents: 2
diff changeset
     3
import os
7358eeae14d8 Rough website for Scipy.
Shantanu <shantanu@fossee.in>
parents: 2
diff changeset
     4
6
4e819dd96e1f Restructured and revamped the entire settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 5
diff changeset
     5
2
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     6
DEBUG = True
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     7
TEMPLATE_DEBUG = DEBUG
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     8
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     9
ADMINS = (
5
7358eeae14d8 Rough website for Scipy.
Shantanu <shantanu@fossee.in>
parents: 2
diff changeset
    10
    ('Shantanu Choudary', 'choudhary.shantanu@gmail.com'),
2
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    11
)
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    12
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    13
MANAGERS = ADMINS
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    14
12
243a7e90f3c3 Added Template context processors and Session Expire time for auth module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 8
diff changeset
    15
SESSION_EXPIRE_AT_BROWSER_CLOSE = True
243a7e90f3c3 Added Template context processors and Session Expire time for auth module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 8
diff changeset
    16
243a7e90f3c3 Added Template context processors and Session Expire time for auth module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 8
diff changeset
    17
DEFAULT_FROM_EMAIL = 'admin@scipy.in'
243a7e90f3c3 Added Template context processors and Session Expire time for auth module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 8
diff changeset
    18
26
207e95f41820 Made some template corrections for settings.py
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 25
diff changeset
    19
DATABASE_ENGINE = ''           # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
207e95f41820 Made some template corrections for settings.py
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 25
diff changeset
    20
DATABASE_NAME = ''             # Or path to database file if using sqlite3.
207e95f41820 Made some template corrections for settings.py
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 25
diff changeset
    21
DATABASE_USER = ''             # Not used with sqlite3.
207e95f41820 Made some template corrections for settings.py
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 25
diff changeset
    22
DATABASE_PASSWORD = ''         # Not used with sqlite3.
2
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    23
DATABASE_HOST = ''             # Set to empty string for localhost. Not used with sqlite3.
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    24
DATABASE_PORT = ''             # Set to empty string for default. Not used with sqlite3.
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    25
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    26
# Local time zone for this installation. Choices can be found here:
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    27
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    28
# although not all choices may be available on all operating systems.
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    29
# If running in a Windows environment this must be set to the same as your
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    30
# system time zone.
5
7358eeae14d8 Rough website for Scipy.
Shantanu <shantanu@fossee.in>
parents: 2
diff changeset
    31
TIME_ZONE = 'Asia/Kolkata'
2
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    32
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    33
# Language code for this installation. All choices can be found here:
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    34
# http://www.i18nguy.com/unicode/language-identifiers.html
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    35
LANGUAGE_CODE = 'en-us'
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    36
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    37
SITE_ID = 1
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    38
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    39
# If you set this to False, Django will make some optimizations so as not
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    40
# to load the internationalization machinery.
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    41
USE_I18N = True
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    42
6
4e819dd96e1f Restructured and revamped the entire settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 5
diff changeset
    43
ROOT_PATH = os.path.dirname(__file__)
5
7358eeae14d8 Rough website for Scipy.
Shantanu <shantanu@fossee.in>
parents: 2
diff changeset
    44
2
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    45
# Absolute path to the directory that holds media.
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    46
# Example: "/home/media/media.lawrence.com/"
5
7358eeae14d8 Rough website for Scipy.
Shantanu <shantanu@fossee.in>
parents: 2
diff changeset
    47
MEDIA_ROOT = os.path.join(ROOT_PATH, 'site-content')
2
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    48
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    49
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    50
# trailing slash if there is a path component (optional in other cases).
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    51
# Examples: "http://media.lawrence.com", "http://example.com/media/"
5
7358eeae14d8 Rough website for Scipy.
Shantanu <shantanu@fossee.in>
parents: 2
diff changeset
    52
MEDIA_URL = '/site-content/'
2
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    53
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    54
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    55
# trailing slash.
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    56
# Examples: "http://foo.com/media/", "/media/".
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    57
ADMIN_MEDIA_PREFIX = '/media/'
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    58
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    59
# Make this unique, and don't share it with anybody.
6
4e819dd96e1f Restructured and revamped the entire settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 5
diff changeset
    60
SECRET_KEY = '(ob412sq1npyyuvfi*b@eby$ip=1rfl*l*b%8f4&l@)3iu$&4#'
2
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    61
8
f0b5ff862c6d Added django-registration and its settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 7
diff changeset
    62
AUTH_PROFILE_MODULE = 'conference.participant'
f0b5ff862c6d Added django-registration and its settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 7
diff changeset
    63
12
243a7e90f3c3 Added Template context processors and Session Expire time for auth module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 8
diff changeset
    64
# List of context processors.
243a7e90f3c3 Added Template context processors and Session Expire time for auth module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 8
diff changeset
    65
TEMPLATE_CONTEXT_PROCESSORS = (
243a7e90f3c3 Added Template context processors and Session Expire time for auth module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 8
diff changeset
    66
    'django.core.context_processors.auth',
243a7e90f3c3 Added Template context processors and Session Expire time for auth module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 8
diff changeset
    67
    'django.core.context_processors.debug',
243a7e90f3c3 Added Template context processors and Session Expire time for auth module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 8
diff changeset
    68
    'django.core.context_processors.i18n',
243a7e90f3c3 Added Template context processors and Session Expire time for auth module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 8
diff changeset
    69
    'django.core.context_processors.media'
243a7e90f3c3 Added Template context processors and Session Expire time for auth module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 8
diff changeset
    70
)
243a7e90f3c3 Added Template context processors and Session Expire time for auth module.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 8
diff changeset
    71
2
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    72
# List of callables that know how to import templates from various sources.
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    73
TEMPLATE_LOADERS = (
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    74
    'django.template.loaders.filesystem.load_template_source',
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    75
    'django.template.loaders.app_directories.load_template_source',
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    76
#     'django.template.loaders.eggs.load_template_source',
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    77
)
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    78
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    79
MIDDLEWARE_CLASSES = (
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    80
    'django.middleware.common.CommonMiddleware',
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    81
    'django.contrib.sessions.middleware.SessionMiddleware',
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    82
    'django.contrib.auth.middleware.AuthenticationMiddleware',
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    83
)
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    84
6
4e819dd96e1f Restructured and revamped the entire settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 5
diff changeset
    85
ROOT_URLCONF = 'scipy.urls'
2
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    86
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    87
TEMPLATE_DIRS = (
6
4e819dd96e1f Restructured and revamped the entire settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 5
diff changeset
    88
    os.path.join(ROOT_PATH, 'template'),
2
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    89
    # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    90
    # Always use forward slashes, even on Windows.
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    91
    # Don't forget to use absolute paths, not relative paths.
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    92
)
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    93
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    94
INSTALLED_APPS = (
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    95
    'django.contrib.auth',
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    96
    'django.contrib.contenttypes',
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    97
    'django.contrib.sessions',
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    98
    'django.contrib.sites',
6
4e819dd96e1f Restructured and revamped the entire settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 5
diff changeset
    99
    'scipy.conference',
8
f0b5ff862c6d Added django-registration and its settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 7
diff changeset
   100
    'registration',
2
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
   101
)
8
f0b5ff862c6d Added django-registration and its settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 7
diff changeset
   102
f0b5ff862c6d Added django-registration and its settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 7
diff changeset
   103
ACCOUNT_ACTIVATION_DAYS = 0