settings.py revision c7f1593f9af3ea1b9264b37628c36f3a70e1749a
1#!/usr/bin/python
2#
3# Copyright 2011 Google Inc. All Rights Reserved.
4#
5# Django settings for monitor project.
6#
7# For explanation look here: http://docs.djangoproject.com/en/dev/ref/settings
8#
9
10__author__ = 'kbaclawski@google.com (Krystian Baclawski)'
11
12import os.path
13import sys
14
15# Path to the root of application. It's a custom setting, not related to Django.
16ROOT_PATH = os.path.dirname(os.path.realpath(sys.argv[0]))
17
18# Print useful information during runtime if possible.
19DEBUG = True
20TEMPLATE_DEBUG = DEBUG
21
22# Sqlite3 database configuration, though we don't use it right now.
23DATABASE_ENGINE = 'sqlite3'
24DATABASE_NAME = os.path.join(ROOT_PATH, 'monitor.db')
25
26# Local time zone for this installation.
27TIME_ZONE = 'America/Los_Angeles'
28
29# Language code for this installation.
30LANGUAGE_CODE = 'en-us'
31
32# If you set this to False, Django will make some optimizations so as not
33# to load the internationalization machinery.
34USE_I18N = True
35
36# Absolute path to the directory that holds media.
37MEDIA_ROOT = os.path.join(ROOT_PATH, 'static') + '/'
38
39# URL that handles the media served from MEDIA_ROOT. Make sure to use a
40# trailing slash if there is a path component (optional in other cases).
41MEDIA_URL = '/static/'
42
43# Used to provide a seed in secret-key hashing algorithms.  Make this unique,
44# and don't share it with anybody.
45SECRET_KEY = '13p5p_4q91*8@yo+tvvt#2k&6#d_&e_zvxdpdil53k419i5sop'
46
47# A string representing the full Python import path to your root URLconf.
48ROOT_URLCONF = 'monitor.urls'
49
50# List of locations of the template source files, in search order.
51TEMPLATE_DIRS = (
52    os.path.join(ROOT_PATH, 'templates'),
53)
54