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