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 (at] google.com (Krystian Baclawski)' 9 10 import os.path 11 import sys 12 13 # Path to the root of application. It's a custom setting, not related to Django. 14 ROOT_PATH = os.path.dirname(os.path.realpath(sys.argv[0])) 15 16 # Print useful information during runtime if possible. 17 DEBUG = True 18 TEMPLATE_DEBUG = DEBUG 19 20 # Sqlite3 database configuration, though we don't use it right now. 21 DATABASE_ENGINE = 'sqlite3' 22 DATABASE_NAME = os.path.join(ROOT_PATH, 'monitor.db') 23 24 # Local time zone for this installation. 25 TIME_ZONE = 'America/Los_Angeles' 26 27 # Language code for this installation. 28 LANGUAGE_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. 32 USE_I18N = True 33 34 # Absolute path to the directory that holds media. 35 MEDIA_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). 39 MEDIA_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. 43 SECRET_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. 46 ROOT_URLCONF = 'monitor.urls' 47 48 # List of locations of the template source files, in search order. 49 TEMPLATE_DIRS = (os.path.join(ROOT_PATH, 'templates'),) 50