Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 91 lines (72 sloc) 3.092 kb
9d7b2b83 »
2011-08-26 Addition of basic app
1 # Django settings for inlinestylr project.
2 import os, sys
3
4 FILEROOT = os.path.dirname(__file__)
5 STATICROOT = os.path.join(FILEROOT, "static")
6
7 DEBUG = True
8 TEMPLATE_DEBUG = DEBUG
9
10 ADMINS = (
11 ('David Cranwell', 'david@torchbox.com'),
12 )
13
14 MANAGERS = ADMINS
15
16 DATABASE_ENGINE = '' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
17 DATABASE_NAME = '' # Or path to database file if using sqlite3.
18 DATABASE_USER = '' # Not used with sqlite3.
19 DATABASE_PASSWORD = '' # Not used with sqlite3.
20 DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3.
21 DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3.
22
23 # Local time zone for this installation. Choices can be found here:
24 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
25 # although not all choices may be available on all operating systems.
26 # If running in a Windows environment this must be set to the same as your
27 # system time zone.
28 TIME_ZONE = 'Europe/London'
29
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'
33
34 SITE_ID = 1
35
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
39
40 # Absolute path to the directory that holds media.
41 # Example: "/home/media/media.lawrence.com/"
42 MEDIA_ROOT = ''
43
44 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
45 # trailing slash if there is a path component (optional in other cases).
46 # Examples: "http://media.lawrence.com", "http://example.com/media/"
47 MEDIA_URL = ''
48
49 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
50 # trailing slash.
51 # Examples: "http://foo.com/media/", "/media/".
52 ADMIN_MEDIA_PREFIX = '/media/'
53
54 # Make this unique, and don't share it with anybody.
55 SECRET_KEY = '8^nq*0px5#pzb$4ic6$43=j9c!q1-_k)ad$jg#si)(pwu^qed*'
56
57 # List of callables that know how to import templates from various sources.
58 TEMPLATE_LOADERS = (
59 'django.template.loaders.filesystem.load_template_source',
60 'django.template.loaders.app_directories.load_template_source',
61 # 'django.template.loaders.eggs.load_template_source',
62 )
63
64 MIDDLEWARE_CLASSES = (
65 'django.middleware.common.CommonMiddleware',
66 'django.contrib.sessions.middleware.SessionMiddleware',
67 'django.contrib.auth.middleware.AuthenticationMiddleware',
68 )
69
70 ROOT_URLCONF = 'inlinestylr.urls'
71
72 TEMPLATE_DIRS = (
73 # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
74 # Always use forward slashes, even on Windows.
75 # Don't forget to use absolute paths, not relative paths.
76 )
77
78 INSTALLED_APPS = (
79 'django.contrib.auth',
80 'django.contrib.contenttypes',
81 'django.contrib.sessions',
82 'django.contrib.sites',
83 'inlinestylr.styler'
84 )
85
86 # Get local settings
87 try:
88 from settings_local import *
89 except ImportError:
90 print "You have no settings_local.py file! Make one, possibly by copying settings_local.py.example."
91 sys.exit(1)
Something went wrong with that request. Please try again.