summaryrefslogtreecommitdiff
path: root/project/settings.py
blob: ebfa0696395c97e161342d15f38a7c22574e423b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106

import os

ADMINS = (
    #('Madhusudan.C.S', 'admin@scipy.in'),
)

MANAGERS = ADMINS

DEBUG=True
DATABASE_HOST = ''
DATABASE_PORT = ''

TIME_ZONE = 'Asia/Kolkata'

LANGUAGE_CODE = 'en-us'

# Absolute path to the directory that holds media.
# Example: "/home/media/media.lawrence.com/"
MEDIA_ROOT = os.path.join(os.path.dirname(__file__), 'media')

USER_MEDIA_ROOT = os.path.join(os.path.dirname(__file__), 'media', 'user')
USER_MEDIA_PDF = os.path.join(os.path.dirname(__file__), 'media', 'pdf')

# URL that handles the media served from MEDIA_ROOT. Make sure to use a
# trailing slash if there is a path component (optional in other cases).
# Examples: "http://media.lawrence.com", "http://example.com/media/"
MEDIA_URL = '/media/'

USER_MEDIA_URL = '/media/user/'

# Absolute path to the directory that holds static files.
# Example: "/home/static-files/static-files.lawrence.com/"
STATIC_ROOT = os.path.join(os.path.dirname(__file__), 'static')

# URL that handles the static files served from MEDIA_ROOT. Make sure to use a
# trailing slash if there is a path component (optional in other cases).
# Examples: "http://static-files.lawrence.com", "http://example.com/static-files/"
STATIC_URL = '/'

# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
# trailing slash.
# Examples: "http://foo.com/media/", "/media/".
ADMIN_MEDIA_PREFIX = '/admin_media/'

# Don't share this with anybody.
SECRET_KEY = 'o)l1m*xi4%7*2dkbwcou2vc48vo8v48y3obyou3hb3bh$t25zd'

MIDDLEWARE_CLASSES = (
    'django.middleware.common.CommonMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.middleware.doc.XViewMiddleware',
    'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
)

ROOT_URLCONF = 'project.urls'

TEMPLATE_LOADERS = (
    'django.template.loaders.filesystem.load_template_source',
    'django.template.loaders.app_directories.load_template_source',
)

TEMPLATE_DIRS = (
    os.path.join(os.path.dirname(__file__), 'templates'),
)

AUTH_PROFILE_MODULE = 'user.UserProfile'

TEMPLATE_CONTEXT_PROCESSORS = (
        'django.core.context_processors.auth',
        'django.core.context_processors.debug',
        'django.core.context_processors.i18n',
        'django.core.context_processors.media')

DEFAULT_FROM_EMAIL 	= 'admin@scipy.in'

CURRENT_SCOPE = 'scipyin/2011'

LOGIN_URL = '/%s/login' % (CURRENT_SCOPE)

DATABASE_ENGINE = 'sqlite3'
DATABASE_NAME = 'scipycon.db'
DATABASE_USER = ''
DATABASE_PASSWORD = ''

INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.comments',
    'django.contrib.sessions',
    'django.contrib.admin',
    'django.contrib.sites',
    'django.contrib.flatpages',
    'django.contrib.markup',
    'django.contrib.sitemaps',
    'project.scipycon',
    'project.scipycon.base',
    'project.scipycon.proceedings',
    'project.scipycon.registration',
    'project.scipycon.user',
    'project.scipycon.talk',
    'tagging',
    'robots',
)