project/settings.py
changeset 1 fda1c66b25f9
child 22 2294c71a61ea
equal deleted inserted replaced
0:9a77edda77b7 1:fda1c66b25f9
       
     1 
       
     2 import os
       
     3 
       
     4 ADMINS = (
       
     5     ('Madhusudan.C.S', 'admin@scipy.in'),
       
     6 )
       
     7 
       
     8 MANAGERS = ADMINS
       
     9 
       
    10 DATABASE_HOST = ''
       
    11 DATABASE_PORT = ''
       
    12 
       
    13 TIME_ZONE = 'Asia/Kolkata'
       
    14 
       
    15 LANGUAGE_CODE = 'en-us'
       
    16 
       
    17 # Absolute path to the directory that holds media.
       
    18 # Example: "/home/media/media.lawrence.com/"
       
    19 MEDIA_ROOT = os.path.join(os.path.dirname(__file__), 'media')
       
    20 
       
    21 USER_MEDIA_ROOT = os.path.join(os.path.dirname(__file__), 'media', 'user')
       
    22 USER_MEDIA_PDF = os.path.join(os.path.dirname(__file__), 'media', 'pdf')
       
    23 
       
    24 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
       
    25 # trailing slash if there is a path component (optional in other cases).
       
    26 # Examples: "http://media.lawrence.com", "http://example.com/media/"
       
    27 MEDIA_URL = '/media/'
       
    28 
       
    29 USER_MEDIA_URL = '/media/user/'
       
    30 
       
    31 # Absolute path to the directory that holds static files.
       
    32 # Example: "/home/static-files/static-files.lawrence.com/"
       
    33 STATIC_ROOT = os.path.join(os.path.dirname(__file__), 'static')
       
    34 
       
    35 # URL that handles the static files served from MEDIA_ROOT. Make sure to use a
       
    36 # trailing slash if there is a path component (optional in other cases).
       
    37 # Examples: "http://static-files.lawrence.com", "http://example.com/static-files/"
       
    38 STATIC_URL = '/'
       
    39 
       
    40 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
       
    41 # trailing slash.
       
    42 # Examples: "http://foo.com/media/", "/media/".
       
    43 ADMIN_MEDIA_PREFIX = '/admin_media/'
       
    44 
       
    45 # Don't share this with anybody.
       
    46 SECRET_KEY = 'o)l1m*xi4%7*2dkbwcou2vc48vo8v48y3obyou3hb3bh$t25zd'
       
    47 
       
    48 MIDDLEWARE_CLASSES = (
       
    49     'django.middleware.common.CommonMiddleware',
       
    50     'django.contrib.sessions.middleware.SessionMiddleware',
       
    51     'django.contrib.auth.middleware.AuthenticationMiddleware',
       
    52     'django.middleware.doc.XViewMiddleware',
       
    53     'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
       
    54 )
       
    55 
       
    56 ROOT_URLCONF = 'project.urls'
       
    57 
       
    58 TEMPLATE_LOADERS = (
       
    59     'django.template.loaders.filesystem.load_template_source',
       
    60     'django.template.loaders.app_directories.load_template_source',
       
    61 )
       
    62 
       
    63 TEMPLATE_DIRS = (
       
    64     os.path.join(os.path.dirname(__file__), "templates"),
       
    65 )
       
    66 
       
    67 LOGIN_URL = "/login"
       
    68 
       
    69 AUTH_PROFILE_MODULE = 'user.UserProfile'
       
    70 
       
    71 TEMPLATE_CONTEXT_PROCESSORS = (
       
    72         'django.core.context_processors.auth',
       
    73         'django.core.context_processors.debug',
       
    74         'django.core.context_processors.i18n',
       
    75         'django.core.context_processors.media',
       
    76         'project.kiwipycon.context_processors.sponsors')