settings.py
author Shantanu <shantanu@fossee.in>
Thu, 24 Sep 2009 15:20:30 +0530
changeset 5 7358eeae14d8
parent 2 8d8ada9849be
child 6 4e819dd96e1f
permissions -rw-r--r--
Rough website for Scipy.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     1
# Django settings for scipy project.
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     2
5
7358eeae14d8 Rough website for Scipy.
Shantanu <shantanu@fossee.in>
parents: 2
diff changeset
     3
import os
7358eeae14d8 Rough website for Scipy.
Shantanu <shantanu@fossee.in>
parents: 2
diff changeset
     4
2
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     5
DEBUG = True
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     6
TEMPLATE_DEBUG = DEBUG
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     7
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     8
ADMINS = (
5
7358eeae14d8 Rough website for Scipy.
Shantanu <shantanu@fossee.in>
parents: 2
diff changeset
     9
    ('Shantanu Choudary', 'choudhary.shantanu@gmail.com'),
2
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    10
    # ('Your Name', 'your_email@domain.com'),
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    11
)
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    12
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    13
MANAGERS = ADMINS
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    14
5
7358eeae14d8 Rough website for Scipy.
Shantanu <shantanu@fossee.in>
parents: 2
diff changeset
    15
DATABASE_ENGINE = 'sqlite3'           # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
7358eeae14d8 Rough website for Scipy.
Shantanu <shantanu@fossee.in>
parents: 2
diff changeset
    16
DATABASE_NAME = 'participants'             # Or path to database file if using sqlite3.
2
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    17
DATABASE_USER = ''             # Not used with sqlite3.
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    18
DATABASE_PASSWORD = ''         # Not used with sqlite3.
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    19
DATABASE_HOST = ''             # Set to empty string for localhost. Not used with sqlite3.
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    20
DATABASE_PORT = ''             # Set to empty string for default. Not used with sqlite3.
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    21
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    22
# Local time zone for this installation. Choices can be found here:
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    23
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    24
# although not all choices may be available on all operating systems.
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    25
# If running in a Windows environment this must be set to the same as your
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    26
# system time zone.
5
7358eeae14d8 Rough website for Scipy.
Shantanu <shantanu@fossee.in>
parents: 2
diff changeset
    27
TIME_ZONE = 'Asia/Kolkata'
2
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    28
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    29
# Language code for this installation. All choices can be found here:
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    30
# http://www.i18nguy.com/unicode/language-identifiers.html
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    31
LANGUAGE_CODE = 'en-us'
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    32
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    33
SITE_ID = 1
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    34
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    35
# If you set this to False, Django will make some optimizations so as not
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    36
# to load the internationalization machinery.
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    37
USE_I18N = True
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    38
5
7358eeae14d8 Rough website for Scipy.
Shantanu <shantanu@fossee.in>
parents: 2
diff changeset
    39
AUTH_PROFILE_MODULE = 'content.model.Participant'
7358eeae14d8 Rough website for Scipy.
Shantanu <shantanu@fossee.in>
parents: 2
diff changeset
    40
7358eeae14d8 Rough website for Scipy.
Shantanu <shantanu@fossee.in>
parents: 2
diff changeset
    41
ROOT_PATH = os.path.dirname(__file__)
2
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    42
# Absolute path to the directory that holds media.
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    43
# Example: "/home/media/media.lawrence.com/"
5
7358eeae14d8 Rough website for Scipy.
Shantanu <shantanu@fossee.in>
parents: 2
diff changeset
    44
MEDIA_ROOT = os.path.join(ROOT_PATH, 'site-content')
2
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    45
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    46
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    47
# trailing slash if there is a path component (optional in other cases).
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    48
# Examples: "http://media.lawrence.com", "http://example.com/media/"
5
7358eeae14d8 Rough website for Scipy.
Shantanu <shantanu@fossee.in>
parents: 2
diff changeset
    49
MEDIA_URL = '/site-content/'
2
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    50
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    51
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    52
# trailing slash.
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    53
# Examples: "http://foo.com/media/", "/media/".
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    54
ADMIN_MEDIA_PREFIX = '/media/'
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    55
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    56
# Make this unique, and don't share it with anybody.
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    57
SECRET_KEY = '&l34#62pxee2fb+u&3mz)*z%1p8kujqvxw$7b^!-8&(ias$rzg'
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    58
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    59
# List of callables that know how to import templates from various sources.
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    60
TEMPLATE_LOADERS = (
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    61
    'django.template.loaders.filesystem.load_template_source',
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    62
    'django.template.loaders.app_directories.load_template_source',
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    63
#     'django.template.loaders.eggs.load_template_source',
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    64
)
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    65
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    66
MIDDLEWARE_CLASSES = (
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    67
    'django.middleware.common.CommonMiddleware',
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    68
    'django.contrib.sessions.middleware.SessionMiddleware',
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    69
    'django.contrib.auth.middleware.AuthenticationMiddleware',
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    70
)
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    71
5
7358eeae14d8 Rough website for Scipy.
Shantanu <shantanu@fossee.in>
parents: 2
diff changeset
    72
ROOT_URLCONF = 'scipy-in.urls'
2
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    73
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    74
TEMPLATE_DIRS = (
5
7358eeae14d8 Rough website for Scipy.
Shantanu <shantanu@fossee.in>
parents: 2
diff changeset
    75
	os.path.join(ROOT_PATH, 'template'),
2
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    76
    # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    77
    # Always use forward slashes, even on Windows.
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    78
    # Don't forget to use absolute paths, not relative paths.
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    79
)
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    80
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    81
INSTALLED_APPS = (
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    82
    'django.contrib.auth',
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    83
    'django.contrib.contenttypes',
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    84
    'django.contrib.sessions',
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    85
    'django.contrib.sites',
5
7358eeae14d8 Rough website for Scipy.
Shantanu <shantanu@fossee.in>
parents: 2
diff changeset
    86
    'scipy-in.content',
2
8d8ada9849be Added a django project for scipy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    87
)