summaryrefslogtreecommitdiff
path: root/stapp
diff options
context:
space:
mode:
Diffstat (limited to 'stapp')
-rw-r--r--stapp/settings.py31
1 files changed, 16 insertions, 15 deletions
diff --git a/stapp/settings.py b/stapp/settings.py
index 36abd2b..1e3a061 100644
--- a/stapp/settings.py
+++ b/stapp/settings.py
@@ -1,28 +1,27 @@
# Django settings for stapp project.
-from os.path import dirname, join, basename, abspath
import os
-
-URL_ROOT=''
+PROJECT_DIR = os.path.dirname(__file__)
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
-CURDIR = abspath(dirname(__file__))
-DB_FILE = join(CURDIR, 'stapp.db')
+
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
- 'NAME': DB_FILE, # Or path to database file if using sqlite3.
- 'USER': '', # Not used with sqlite3.
- 'PASSWORD': '', # Not used with sqlite3.
- 'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
- 'PORT': '', # Set to empty string for default. Not used with sqlite3.
+ 'NAME': 'stapp.db', # Or path to database file if using sqlite3.
+ 'USER': '', # Not used with sqlite3.
+ 'PASSWORD': '', # Not used with sqlite3.
+ 'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
+ 'PORT': '', # Set to empty string for default. Not used with sqlite3.
}
}
+URL_ROOT = ''
+
# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.
@@ -30,7 +29,7 @@ DATABASES = {
# timezone as the operating system.
# If running in a Windows environment this must be set to the same as your
# system time zone.
-TIME_ZONE = 'America/Chicago'
+TIME_ZONE = 'Asia/Kolkata'
# Language code for this installation. All choices can be found here:
# http://www.i18nguy.com/unicode/language-identifiers.html
@@ -68,14 +67,14 @@ STATIC_URL = '/static/'
# URL prefix for admin static files -- CSS, JavaScript and images.
# Make sure to use a trailing slash.
# Examples: "http://foo.com/static/admin/", "/static/admin/".
-ADMIN_MEDIA_PREFIX = URL_ROOT + '/static/admin/'
+ADMIN_MEDIA_PREFIX = '/static/admin/'
# Additional locations of static files
STATICFILES_DIRS = (
# Put strings here, like "/home/html/static" or "C:/www/django/static".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
- join(CURDIR, 'static'),
+ os.path.join(PROJECT_DIR, "static"),
)
# List of finder classes that know how to find static files in
@@ -104,13 +103,13 @@ MIDDLEWARE_CLASSES = (
'django.contrib.messages.middleware.MessageMiddleware',
)
-ROOT_URLCONF = '%s.urls'%(basename(CURDIR))
+ROOT_URLCONF = 'stapp.urls'
TEMPLATE_DIRS = (
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
- os.path.join(os.path.dirname(__file__), "templates"),
+ os.path.join(PROJECT_DIR, "template")
)
INSTALLED_APPS = (
@@ -124,7 +123,9 @@ INSTALLED_APPS = (
'django.contrib.admin',
# Uncomment the next line to enable admin documentation:
'django.contrib.admindocs',
+
'south',
+
'video',
)