Fix settings.py file to always use viper.db in current dir
[frozenviper.git] / viper / settings.py
blobb712e89dca3be5b42bd166adb6accb01d9a71a72
1 # Django settings for viper project.
3 import os
5 DEBUG = True
6 TEMPLATE_DEBUG = DEBUG
8 ADMINS = (
9 # ('Your Name', 'your_email@domain.com'),
12 MANAGERS = ADMINS
14 DATABASES = {
15 'default': {
16 'ENGINE': 'django.db.backends.sqlite3',
17 'NAME': os.path.join(os.path.abspath(os.path.dirname(__file__)), 'viper.db'),
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 # On Unix systems, a value of None will cause Django to use the same
25 # timezone as the operating system.
26 # If running in a Windows environment this must be set to the same as your
27 # system time zone.
28 TIME_ZONE = 'America/Los_Angeles'
30 # Language code for this installation. All choices can be found here:
31 # http://www.i18nguy.com/unicode/language-identifiers.html
32 LANGUAGE_CODE = 'en-us'
34 SITE_ID = 1
36 # If you set this to False, Django will make some optimizations so as not
37 # to load the internationalization machinery.
38 USE_I18N = True
40 # If you set this to False, Django will not format dates, numbers and
41 # calendars according to the current locale
42 USE_L10N = True
44 # Absolute path to the directory that holds media.
45 # Example: "/home/media/media.lawrence.com/"
46 MEDIA_ROOT = ''
48 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
49 # trailing slash if there is a path component (optional in other cases).
50 # Examples: "http://media.lawrence.com", "http://example.com/media/"
51 MEDIA_URL = ''
53 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
54 # trailing slash.
55 # Examples: "http://foo.com/media/", "/media/".
56 ADMIN_MEDIA_PREFIX = '/media/'
58 # Make this unique, and don't share it with anybody.
59 SECRET_KEY = 's3&3&$(ta$r#ewrns3cv2pyh6-c4^e-4+u^dbivi4mugcnc_yz'
61 # List of callables that know how to import templates from various sources.
62 TEMPLATE_LOADERS = (
63 'django.template.loaders.filesystem.Loader',
64 'django.template.loaders.app_directories.Loader',
65 # 'django.template.loaders.eggs.Loader',
68 MIDDLEWARE_CLASSES = (
69 'django.middleware.common.CommonMiddleware',
70 'django.contrib.sessions.middleware.SessionMiddleware',
71 'django.middleware.csrf.CsrfViewMiddleware',
72 'django.contrib.auth.middleware.AuthenticationMiddleware',
73 'django.contrib.messages.middleware.MessageMiddleware',
76 ROOT_URLCONF = 'viper.urls'
78 ROOT_PATH = os.path.dirname(__file__)
79 TEMPLATE_DIRS = (
80 os.path.join(ROOT_PATH, 'templates'),
81 os.path.join(ROOT_PATH, 'listing', 'templates'),
82 os.path.join(ROOT_PATH, 'account', 'templates'),
85 INSTALLED_APPS = (
86 'django.contrib.auth',
87 'django.contrib.contenttypes',
88 'django.contrib.sessions',
89 'django.contrib.sites',
90 'django.contrib.messages',
91 'django.contrib.admin',
92 'django.contrib.admindocs',
93 'viper.listing',
96 APPEND_SLASH = True