settings.py
changeset 1 a370c5796d08
child 2 2c1e89e4a5a2
equal deleted inserted replaced
0:621d1b4200d2 1:a370c5796d08
       
     1 # Django settings for spoken_tut project.
       
     2 
       
     3 import os
       
     4 from local import *
       
     5 
       
     6 DEBUG = True
       
     7 TEMPLATE_DEBUG = DEBUG
       
     8 
       
     9 ADMINS = (
       
    10     ('Shantanu Choudary', 'choudhary.shantanu@gmail.com'),
       
    11     ('Puneeth Chaganti', 'punchagan@gmail.'),
       
    12     ('Santosh Vattam', 'vattam.santosh@gmail.com'),
       
    13     ('Madhusudan.C.S', 'madhusudancs@gmail.com'),
       
    14 )
       
    15 
       
    16 MANAGERS = ADMINS
       
    17 #DATABASE_ENGINE = ''            # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
       
    18 #DATABASE_NAME = ''             # Or path to database file if using sqlite3.
       
    19 #DATABASE_USER = ''             # Not used with sqlite3.
       
    20 #DATABASE_PASSWORD = ''         # Not used with sqlite3.
       
    21 DATABASE_HOST = ''             # Set to empty string for localhost. Not used with sqlite3.
       
    22 DATABASE_PORT = ''             # Set to empty string for default. Not used with sqlite3.
       
    23 
       
    24 # Local time zone for this installation. Choices can be found here:
       
    25 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
       
    26 # although not all choices may be available on all operating systems.
       
    27 # If running in a Windows environment this must be set to the same as your
       
    28 # system time zone.
       
    29 TIME_ZONE = 'Asia/Kolkata'
       
    30 
       
    31 # Language code for this installation. All choices can be found here:
       
    32 # http://www.i18nguy.com/unicode/language-identifiers.html
       
    33 LANGUAGE_CODE = 'en-us'
       
    34 
       
    35 SITE_ID = 1
       
    36 
       
    37 # If you set this to False, Django will make some optimizations so as not
       
    38 # to load the internationalization machinery.
       
    39 USE_I18N = True
       
    40 
       
    41 ROOT_PATH = os.path.dirname(__file__)
       
    42 
       
    43 # Absolute path to the directory that holds media.
       
    44 # Example: "/home/media/media.lawrence.com/"
       
    45 MEDIA_ROOT = os.path.join(ROOT_PATH, 'site-content')
       
    46 
       
    47 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
       
    48 # trailing slash if there is a path component (optional in other cases).
       
    49 # Examples: "http://media.lawrence.com", "http://example.com/media/"
       
    50 MEDIA_URL = '/site-content/'
       
    51 
       
    52 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
       
    53 # trailing slash.
       
    54 # Examples: "http://foo.com/media/", "/media/".
       
    55 ADMIN_MEDIA_PREFIX = '/media/'
       
    56 
       
    57 # Make this unique, and don't share it with anybody.
       
    58 SECRET_KEY = '@@9=k$c#a5!()b5_om1_m^0p9@2p6!9^6@9^%%60ju9tto_#=q'
       
    59 
       
    60 # List of callables that know how to import templates from various sources.
       
    61 TEMPLATE_LOADERS = (
       
    62     'django.template.loaders.filesystem.load_template_source',
       
    63     'django.template.loaders.app_directories.load_template_source',
       
    64 #     'django.template.loaders.eggs.load_template_source',
       
    65 )
       
    66 
       
    67 MIDDLEWARE_CLASSES = (
       
    68     'django.middleware.common.CommonMiddleware',
       
    69     'django.contrib.sessions.middleware.SessionMiddleware',
       
    70     'django.contrib.auth.middleware.AuthenticationMiddleware',
       
    71 )
       
    72 
       
    73 ROOT_URLCONF = 'workshop_registration.urls'
       
    74 
       
    75 TEMPLATE_DIRS = (
       
    76     os.path.join(ROOT_PATH, 'template'),
       
    77     # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
       
    78     # Always use forward slashes, even on Windows.
       
    79     # Don't forget to use absolute paths, not relative paths.
       
    80 )
       
    81 
       
    82 INSTALLED_APPS = (
       
    83     'django.contrib.auth',
       
    84     'django.contrib.contenttypes',
       
    85     'django.contrib.sessions',
       
    86     'django.contrib.sites',
       
    87     'django.contrib.admin',
       
    88     'django.contrib.databrowse',
       
    89     'workshop_registration.upload',
       
    90     'captcha',
       
    91 )