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