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