settings.py
changeset 5 7358eeae14d8
parent 2 8d8ada9849be
child 6 4e819dd96e1f
equal deleted inserted replaced
4:22e66e1ed995 5:7358eeae14d8
     1 # Django settings for scipy project.
     1 # Django settings for scipy project.
       
     2 
       
     3 import os
     2 
     4 
     3 DEBUG = True
     5 DEBUG = True
     4 TEMPLATE_DEBUG = DEBUG
     6 TEMPLATE_DEBUG = DEBUG
     5 
     7 
     6 ADMINS = (
     8 ADMINS = (
       
     9     ('Shantanu Choudary', 'choudhary.shantanu@gmail.com'),
     7     # ('Your Name', 'your_email@domain.com'),
    10     # ('Your Name', 'your_email@domain.com'),
     8 )
    11 )
     9 
    12 
    10 MANAGERS = ADMINS
    13 MANAGERS = ADMINS
    11 
    14 
    12 DATABASE_ENGINE = ''           # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
    15 DATABASE_ENGINE = 'sqlite3'           # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
    13 DATABASE_NAME = ''             # Or path to database file if using sqlite3.
    16 DATABASE_NAME = 'participants'             # Or path to database file if using sqlite3.
    14 DATABASE_USER = ''             # Not used with sqlite3.
    17 DATABASE_USER = ''             # Not used with sqlite3.
    15 DATABASE_PASSWORD = ''         # Not used with sqlite3.
    18 DATABASE_PASSWORD = ''         # Not used with sqlite3.
    16 DATABASE_HOST = ''             # Set to empty string for localhost. Not used with sqlite3.
    19 DATABASE_HOST = ''             # Set to empty string for localhost. Not used with sqlite3.
    17 DATABASE_PORT = ''             # Set to empty string for default. Not used with sqlite3.
    20 DATABASE_PORT = ''             # Set to empty string for default. Not used with sqlite3.
    18 
    21 
    19 # Local time zone for this installation. Choices can be found here:
    22 # Local time zone for this installation. Choices can be found here:
    20 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
    23 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
    21 # although not all choices may be available on all operating systems.
    24 # although not all choices may be available on all operating systems.
    22 # If running in a Windows environment this must be set to the same as your
    25 # If running in a Windows environment this must be set to the same as your
    23 # system time zone.
    26 # system time zone.
    24 TIME_ZONE = 'America/Chicago'
    27 TIME_ZONE = 'Asia/Kolkata'
    25 
    28 
    26 # Language code for this installation. All choices can be found here:
    29 # Language code for this installation. All choices can be found here:
    27 # http://www.i18nguy.com/unicode/language-identifiers.html
    30 # http://www.i18nguy.com/unicode/language-identifiers.html
    28 LANGUAGE_CODE = 'en-us'
    31 LANGUAGE_CODE = 'en-us'
    29 
    32 
    31 
    34 
    32 # If you set this to False, Django will make some optimizations so as not
    35 # If you set this to False, Django will make some optimizations so as not
    33 # to load the internationalization machinery.
    36 # to load the internationalization machinery.
    34 USE_I18N = True
    37 USE_I18N = True
    35 
    38 
       
    39 AUTH_PROFILE_MODULE = 'content.model.Participant'
       
    40 
       
    41 ROOT_PATH = os.path.dirname(__file__)
    36 # Absolute path to the directory that holds media.
    42 # Absolute path to the directory that holds media.
    37 # Example: "/home/media/media.lawrence.com/"
    43 # Example: "/home/media/media.lawrence.com/"
    38 MEDIA_ROOT = ''
    44 MEDIA_ROOT = os.path.join(ROOT_PATH, 'site-content')
    39 
    45 
    40 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
    46 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
    41 # trailing slash if there is a path component (optional in other cases).
    47 # trailing slash if there is a path component (optional in other cases).
    42 # Examples: "http://media.lawrence.com", "http://example.com/media/"
    48 # Examples: "http://media.lawrence.com", "http://example.com/media/"
    43 MEDIA_URL = ''
    49 MEDIA_URL = '/site-content/'
    44 
    50 
    45 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
    51 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
    46 # trailing slash.
    52 # trailing slash.
    47 # Examples: "http://foo.com/media/", "/media/".
    53 # Examples: "http://foo.com/media/", "/media/".
    48 ADMIN_MEDIA_PREFIX = '/media/'
    54 ADMIN_MEDIA_PREFIX = '/media/'
    61     'django.middleware.common.CommonMiddleware',
    67     'django.middleware.common.CommonMiddleware',
    62     'django.contrib.sessions.middleware.SessionMiddleware',
    68     'django.contrib.sessions.middleware.SessionMiddleware',
    63     'django.contrib.auth.middleware.AuthenticationMiddleware',
    69     'django.contrib.auth.middleware.AuthenticationMiddleware',
    64 )
    70 )
    65 
    71 
    66 ROOT_URLCONF = 'scipy.urls'
    72 ROOT_URLCONF = 'scipy-in.urls'
    67 
    73 
    68 TEMPLATE_DIRS = (
    74 TEMPLATE_DIRS = (
       
    75 	os.path.join(ROOT_PATH, 'template'),
    69     # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
    76     # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
    70     # Always use forward slashes, even on Windows.
    77     # Always use forward slashes, even on Windows.
    71     # Don't forget to use absolute paths, not relative paths.
    78     # Don't forget to use absolute paths, not relative paths.
    72 )
    79 )
    73 
    80 
    74 INSTALLED_APPS = (
    81 INSTALLED_APPS = (
    75     'django.contrib.auth',
    82     'django.contrib.auth',
    76     'django.contrib.contenttypes',
    83     'django.contrib.contenttypes',
    77     'django.contrib.sessions',
    84     'django.contrib.sessions',
    78     'django.contrib.sites',
    85     'django.contrib.sites',
       
    86     'scipy-in.content',
    79 )
    87 )