project/settings.py
author Parth buch <parth.buch.115@gmail.com>
Sat, 01 Oct 2011 03:59:03 +0530
branch2011
changeset 429 cde70fd3073c
parent 389 fe49720e67bf
permissions -rw-r--r--
changed the handler404 and handler500 to a custom view, passing scope to get proper formed urls when displaying 404 and 500 pages
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     1
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     2
import os
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     3
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     4
ADMINS = (
374
df1fe9447ff7 Remove admin@scipy.in email ID from the email List. The spam is too much.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 236
diff changeset
     5
    #('Madhusudan.C.S', 'admin@scipy.in'),
1
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     6
)
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     7
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     8
MANAGERS = ADMINS
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     9
389
fe49720e67bf Modified the registration file
primal primal007@gmail.com
parents: 377
diff changeset
    10
DEBUG=True
1
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    11
DATABASE_HOST = ''
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    12
DATABASE_PORT = ''
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    13
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    14
TIME_ZONE = 'Asia/Kolkata'
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    15
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    16
LANGUAGE_CODE = 'en-us'
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    17
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    18
# Absolute path to the directory that holds media.
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    19
# Example: "/home/media/media.lawrence.com/"
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    20
MEDIA_ROOT = os.path.join(os.path.dirname(__file__), 'media')
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    21
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    22
USER_MEDIA_ROOT = os.path.join(os.path.dirname(__file__), 'media', 'user')
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    23
USER_MEDIA_PDF = os.path.join(os.path.dirname(__file__), 'media', 'pdf')
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    24
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    25
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    26
# trailing slash if there is a path component (optional in other cases).
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    27
# Examples: "http://media.lawrence.com", "http://example.com/media/"
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    28
MEDIA_URL = '/media/'
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    29
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    30
USER_MEDIA_URL = '/media/user/'
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    31
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    32
# Absolute path to the directory that holds static files.
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    33
# Example: "/home/static-files/static-files.lawrence.com/"
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    34
STATIC_ROOT = os.path.join(os.path.dirname(__file__), 'static')
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    35
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    36
# URL that handles the static files served from MEDIA_ROOT. Make sure to use a
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    37
# trailing slash if there is a path component (optional in other cases).
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    38
# Examples: "http://static-files.lawrence.com", "http://example.com/static-files/"
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    39
STATIC_URL = '/'
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    40
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    41
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    42
# trailing slash.
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    43
# Examples: "http://foo.com/media/", "/media/".
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    44
ADMIN_MEDIA_PREFIX = '/admin_media/'
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    45
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    46
# Don't share this with anybody.
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    47
SECRET_KEY = 'o)l1m*xi4%7*2dkbwcou2vc48vo8v48y3obyou3hb3bh$t25zd'
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    48
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    49
MIDDLEWARE_CLASSES = (
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    50
    'django.middleware.common.CommonMiddleware',
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    51
    'django.contrib.sessions.middleware.SessionMiddleware',
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    52
    'django.contrib.auth.middleware.AuthenticationMiddleware',
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    53
    'django.middleware.doc.XViewMiddleware',
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    54
    'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    55
)
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    56
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    57
ROOT_URLCONF = 'project.urls'
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    58
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    59
TEMPLATE_LOADERS = (
152
64d37556e457 Reverted the template loaders path.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 150
diff changeset
    60
    'django.template.loaders.filesystem.load_template_source',
64d37556e457 Reverted the template loaders path.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 150
diff changeset
    61
    'django.template.loaders.app_directories.load_template_source',
1
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    62
)
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    63
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    64
TEMPLATE_DIRS = (
147
c085ceb4652a Made some style changes.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 131
diff changeset
    65
    os.path.join(os.path.dirname(__file__), 'templates'),
1
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    66
)
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    67
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    68
AUTH_PROFILE_MODULE = 'user.UserProfile'
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    69
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    70
TEMPLATE_CONTEXT_PROCESSORS = (
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    71
        'django.core.context_processors.auth',
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    72
        'django.core.context_processors.debug',
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    73
        'django.core.context_processors.i18n',
96
178b89a3ca4f Removed unwanted files and made more changes to make SciPyCon a clean app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 94
diff changeset
    74
        'django.core.context_processors.media')
22
2294c71a61ea Made final changes to the mail to be sent.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 1
diff changeset
    75
389
fe49720e67bf Modified the registration file
primal primal007@gmail.com
parents: 377
diff changeset
    76
DEFAULT_FROM_EMAIL 	= 'admin@scipy.in'
23
3cb3f853a193 Moved ACCOUNT_ACTIVATION_DAYS to settings.py and added name as a template variable.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 22
diff changeset
    77
377
bbb0f40223be changed current scope to scipy/2011
Parth buch <parth.buch.115@gmail.com>
parents: 374
diff changeset
    78
CURRENT_SCOPE = 'scipyin/2011'
131
bf9cc0961c31 Modifed the LOGIN_URL variable for new scope based system.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 107
diff changeset
    79
147
c085ceb4652a Made some style changes.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 131
diff changeset
    80
LOGIN_URL = '/%s/login' % (CURRENT_SCOPE)
236
29ecd3dd6565 Merging heads
Amit Sethi
parents: 152
diff changeset
    81
29ecd3dd6565 Merging heads
Amit Sethi
parents: 152
diff changeset
    82
DATABASE_ENGINE = 'sqlite3'
29ecd3dd6565 Merging heads
Amit Sethi
parents: 152
diff changeset
    83
DATABASE_NAME = 'scipycon.db'
29ecd3dd6565 Merging heads
Amit Sethi
parents: 152
diff changeset
    84
DATABASE_USER = ''
29ecd3dd6565 Merging heads
Amit Sethi
parents: 152
diff changeset
    85
DATABASE_PASSWORD = ''
29ecd3dd6565 Merging heads
Amit Sethi
parents: 152
diff changeset
    86
29ecd3dd6565 Merging heads
Amit Sethi
parents: 152
diff changeset
    87
INSTALLED_APPS = (
29ecd3dd6565 Merging heads
Amit Sethi
parents: 152
diff changeset
    88
    'django.contrib.auth',
29ecd3dd6565 Merging heads
Amit Sethi
parents: 152
diff changeset
    89
    'django.contrib.contenttypes',
29ecd3dd6565 Merging heads
Amit Sethi
parents: 152
diff changeset
    90
    'django.contrib.comments',
29ecd3dd6565 Merging heads
Amit Sethi
parents: 152
diff changeset
    91
    'django.contrib.sessions',
29ecd3dd6565 Merging heads
Amit Sethi
parents: 152
diff changeset
    92
    'django.contrib.admin',
29ecd3dd6565 Merging heads
Amit Sethi
parents: 152
diff changeset
    93
    'django.contrib.sites',
29ecd3dd6565 Merging heads
Amit Sethi
parents: 152
diff changeset
    94
    'django.contrib.flatpages',
29ecd3dd6565 Merging heads
Amit Sethi
parents: 152
diff changeset
    95
    'django.contrib.markup',
29ecd3dd6565 Merging heads
Amit Sethi
parents: 152
diff changeset
    96
    'django.contrib.sitemaps',
29ecd3dd6565 Merging heads
Amit Sethi
parents: 152
diff changeset
    97
    'project.scipycon',
29ecd3dd6565 Merging heads
Amit Sethi
parents: 152
diff changeset
    98
    'project.scipycon.base',
29ecd3dd6565 Merging heads
Amit Sethi
parents: 152
diff changeset
    99
    'project.scipycon.proceedings',
29ecd3dd6565 Merging heads
Amit Sethi
parents: 152
diff changeset
   100
    'project.scipycon.registration',
29ecd3dd6565 Merging heads
Amit Sethi
parents: 152
diff changeset
   101
    'project.scipycon.user',
29ecd3dd6565 Merging heads
Amit Sethi
parents: 152
diff changeset
   102
    'project.scipycon.talk',
29ecd3dd6565 Merging heads
Amit Sethi
parents: 152
diff changeset
   103
    'tagging',
29ecd3dd6565 Merging heads
Amit Sethi
parents: 152
diff changeset
   104
    'robots',
29ecd3dd6565 Merging heads
Amit Sethi
parents: 152
diff changeset
   105
)
29ecd3dd6565 Merging heads
Amit Sethi
parents: 152
diff changeset
   106