settings.py
changeset 10 bf0cbea1bd12
parent 3 a0bd7048f8aa
child 12 a93eebabfeb1
equal deleted inserted replaced
4:12ca78ff63e4 10:bf0cbea1bd12
     8 )
     8 )
     9 
     9 
    10 MANAGERS = ADMINS
    10 MANAGERS = ADMINS
    11 
    11 
    12 DATABASE_ENGINE = 'sqlite3'           # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
    12 DATABASE_ENGINE = 'sqlite3'           # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
    13 DATABASE_NAME = '../pytaskDb'             # Or path to database file if using sqlite3.
    13 DATABASE_NAME = '../../pytask.db'             # Or path to database file if using sqlite3.
    14 DATABASE_USER = ''             # Not used with sqlite3.
    14 DATABASE_USER = ''             # Not used with sqlite3.
    15 DATABASE_PASSWORD = ''         # Not used with sqlite3.
    15 DATABASE_PASSWORD = ''         # Not used with sqlite3.
    16 DATABASE_HOST = ''             # Set to empty string for localhost. Not used with sqlite3.
    16 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.
    17 DATABASE_PORT = ''             # Set to empty string for default. Not used with sqlite3.
    18 
    18 
    46 # trailing slash.
    46 # trailing slash.
    47 # Examples: "http://foo.com/media/", "/media/".
    47 # Examples: "http://foo.com/media/", "/media/".
    48 ADMIN_MEDIA_PREFIX = '/media/'
    48 ADMIN_MEDIA_PREFIX = '/media/'
    49 
    49 
    50 # Make this unique, and don't share it with anybody.
    50 # Make this unique, and don't share it with anybody.
    51 SECRET_KEY = '@7p-w6$99)@&+sp024%is8i=4#62q8*y0xx=5e_z*4h3%@#7u)'
    51 SECRET_KEY = '#7bo8^p1gc=$85gv09z5d_d9-8xk1p=me7_c^3ito@jjth6^^w'
    52 
    52 
    53 # List of callables that know how to import templates from various sources.
    53 # List of callables that know how to import templates from various sources.
    54 TEMPLATE_LOADERS = (
    54 TEMPLATE_LOADERS = (
    55     'django.template.loaders.filesystem.load_template_source',
    55     'django.template.loaders.filesystem.load_template_source',
    56     'django.template.loaders.app_directories.load_template_source',
    56     'django.template.loaders.app_directories.load_template_source',
    67 
    67 
    68 TEMPLATE_DIRS = (
    68 TEMPLATE_DIRS = (
    69     # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
    69     # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
    70     # Always use forward slashes, even on Windows.
    70     # Always use forward slashes, even on Windows.
    71     # Don't forget to use absolute paths, not relative paths.
    71     # Don't forget to use absolute paths, not relative paths.
       
    72     './templates',
    72 )
    73 )
    73 
    74 
    74 INSTALLED_APPS = (
    75 INSTALLED_APPS = (
    75     'django.contrib.auth',
    76     'django.contrib.auth',
    76     'django.contrib.contenttypes',
    77     'django.contrib.contenttypes',
    77     'django.contrib.sessions',
    78     'django.contrib.sessions',
    78     'django.contrib.sites',
    79     'django.contrib.sites',
    79     'django.contrib.admin',
    80     'django.contrib.admin',
    80     'pytask.taskapp',
    81     'pytask.taskapp',
    81 )
    82 )
       
    83 
       
    84 AUTH_PROFILE_MODULE = 'taskapp.models.Profile'