pytask/settings.py
changeset 392 2f7d91759bcf
parent 391 f917e7f05499
child 394 5684635eaca3
equal deleted inserted replaced
391:f917e7f05499 392:2f7d91759bcf
     1 # Django settings for pytask project.
     1 # Django settings for pytask project.
     2 
     2 
       
     3 import os
       
     4 
     3 from pytask.local import *
     5 from pytask.local import *
       
     6 
     4 
     7 
     5 ADMINS = (
     8 ADMINS = (
     6     ('Madhusudan C.S.', 'madhusudancs@fossee.in'),
     9     ('Madhusudan C.S.', 'madhusudancs@fossee.in'),
     7 )
    10 )
     8 
    11 
    13 # although not all choices may be available on all operating systems.
    16 # although not all choices may be available on all operating systems.
    14 # On Unix systems, a value of None will cause Django to use the same
    17 # On Unix systems, a value of None will cause Django to use the same
    15 # timezone as the operating system.
    18 # timezone as the operating system.
    16 # If running in a Windows environment this must be set to the same as your
    19 # If running in a Windows environment this must be set to the same as your
    17 # system time zone.
    20 # system time zone.
    18 TIME_ZONE = 'America/Chicago'
    21 TIME_ZONE = 'Asia/Kolkata'
    19 
    22 
    20 # Language code for this installation. All choices can be found here:
    23 # Language code for this installation. All choices can be found here:
    21 # http://www.i18nguy.com/unicode/language-identifiers.html
    24 # http://www.i18nguy.com/unicode/language-identifiers.html
    22 LANGUAGE_CODE = 'en-us'
    25 LANGUAGE_CODE = 'en-us'
    23 
    26 
    31 # calendars according to the current locale
    34 # calendars according to the current locale
    32 USE_L10N = True
    35 USE_L10N = True
    33 
    36 
    34 # Absolute filesystem path to the directory that will hold user-uploaded files.
    37 # Absolute filesystem path to the directory that will hold user-uploaded files.
    35 # Example: "/home/media/media.lawrence.com/"
    38 # Example: "/home/media/media.lawrence.com/"
    36 MEDIA_ROOT = './static/'
    39 MEDIA_ROOT = os.path.join(os.path.dirname(__file__), 'static')
    37 
    40 
    38 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
    41 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
    39 # trailing slash if there is a path component (optional in other cases).
    42 # trailing slash if there is a path component (optional in other cases).
    40 # Examples: "http://media.lawrence.com", "http://example.com/media/"
    43 # Examples: "http://media.lawrence.com", "http://example.com/media/"
    41 MEDIA_URL = '/static/'
    44 MEDIA_URL = '/static/'
    67 
    70 
    68 TEMPLATE_DIRS = (
    71 TEMPLATE_DIRS = (
    69     # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
    72     # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
    70     # Always use forward slashes, even on Windows.
    73     # Always use forward slashes, even on Windows.
    71     # Don't forget to use absolute paths, not relative paths.
    74     # Don't forget to use absolute paths, not relative paths.
    72     './pytask/templates',
    75     os.path.join(os.path.dirname(__file__), 'templates'),
    73 )
    76 )
    74 
    77 
    75 INSTALLED_APPS = (
    78 INSTALLED_APPS = (
       
    79     'registration',
       
    80     'tagging',
    76     'django.contrib.auth',
    81     'django.contrib.auth',
    77     'django.contrib.contenttypes',
    82     'django.contrib.contenttypes',
    78     'django.contrib.sessions',
    83     'django.contrib.sessions',
    79     'django.contrib.sites',
    84     'django.contrib.sites',
    80     'django.contrib.messages',
    85     'django.contrib.messages',
    81     'registration',
    86     'django.contrib.admin',
    82     'tagging',
       
    83     'pytask.profile',
    87     'pytask.profile',
    84     'pytask.taskapp',
    88     'pytask.taskapp',
    85     # Uncomment the next line to enable the admin:
       
    86     'django.contrib.admin',
       
    87     # Uncomment the next line to enable admin documentation:
       
    88     # 'django.contrib.admindocs',
       
    89 )
    89 )
    90 
    90 
    91 AUTH_PROFILE_MODULE = 'profile.Profile'
    91 AUTH_PROFILE_MODULE = 'profile.Profile'
    92 
    92 
    93 #django-registration
    93 #django-registration
    94 ACCOUNT_ACTIVATION_DAYS = 7
    94 ACCOUNT_ACTIVATION_DAYS = 7
    95 DEFAULT_FROM_EMAIL = 'Admin <admin@fossee.in>'
    95 DEFAULT_FROM_EMAIL = 'FOSSEE Admin <admin@fossee.in>'
    96 LOGIN_REDIRECT_URL = '/'
    96 LOGIN_REDIRECT_URL = '/'