Joe Gregorio | e48a491 | 2010-09-27 15:05:36 -0400 | [diff] [blame] | 1 | # Django settings for django_sample project. |
| 2 | import os |
| 3 | |
| 4 | DEBUG = True |
| 5 | TEMPLATE_DEBUG = DEBUG |
| 6 | |
| 7 | ADMINS = ( |
| 8 | # ('Your Name', 'your_email@domain.com'), |
| 9 | ) |
| 10 | |
| 11 | MANAGERS = ADMINS |
| 12 | |
Joe Gregorio | af276d2 | 2010-12-09 14:26:58 -0500 | [diff] [blame] | 13 | DATABASE_ENGINE = 'sqlite3' |
| 14 | DATABASE_NAME = 'database.sqlite3' |
| 15 | DATABASE_USER = '' |
| 16 | DATABASE_PASSWORD = '' |
| 17 | DATABASE_HOST = '' |
| 18 | DATABASE_PORT = '' |
Joe Gregorio | e48a491 | 2010-09-27 15:05:36 -0400 | [diff] [blame] | 19 | |
| 20 | # Local time zone for this installation. Choices can be found here: |
| 21 | # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name |
| 22 | # although not all choices may be available on all operating systems. |
| 23 | # If running in a Windows environment this must be set to the same as your |
| 24 | # system time zone. |
| 25 | TIME_ZONE = 'America/New_York' |
| 26 | |
| 27 | # Language code for this installation. All choices can be found here: |
| 28 | # http://www.i18nguy.com/unicode/language-identifiers.html |
| 29 | LANGUAGE_CODE = 'en-us' |
| 30 | |
| 31 | SITE_ID = 1 |
| 32 | |
| 33 | # If you set this to False, Django will make some optimizations so as not |
| 34 | # to load the internationalization machinery. |
| 35 | USE_I18N = True |
| 36 | |
| 37 | # Absolute path to the directory that holds media. |
| 38 | # Example: "/home/media/media.lawrence.com/" |
| 39 | MEDIA_ROOT = '' |
| 40 | |
| 41 | # URL that handles the media served from MEDIA_ROOT. Make sure to use a |
| 42 | # trailing slash if there is a path component (optional in other cases). |
| 43 | # Examples: "http://media.lawrence.com", "http://example.com/media/" |
| 44 | MEDIA_URL = '' |
| 45 | |
| 46 | # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a |
| 47 | # trailing slash. |
| 48 | # Examples: "http://foo.com/media/", "/media/". |
| 49 | ADMIN_MEDIA_PREFIX = '/media/' |
| 50 | |
| 51 | # Make this unique, and don't share it with anybody. |
| 52 | SECRET_KEY = '_=9hq-$t_uv1ckf&s!y2$9g$1dm*6p1cl%*!^mg=7gr)!zj32d' |
| 53 | |
| 54 | # List of callables that know how to import templates from various sources. |
| 55 | TEMPLATE_LOADERS = ( |
| 56 | 'django.template.loaders.filesystem.load_template_source', |
| 57 | 'django.template.loaders.app_directories.load_template_source', |
| 58 | # 'django.template.loaders.eggs.load_template_source', |
| 59 | ) |
| 60 | |
| 61 | MIDDLEWARE_CLASSES = ( |
| 62 | 'django.middleware.common.CommonMiddleware', |
| 63 | 'django.contrib.sessions.middleware.SessionMiddleware', |
| 64 | 'django.contrib.auth.middleware.AuthenticationMiddleware', |
Joe Gregorio | 06d852b | 2011-03-25 15:03:10 -0400 | [diff] [blame] | 65 | 'django.middleware.csrf.CsrfViewMiddleware', |
Joe Gregorio | e48a491 | 2010-09-27 15:05:36 -0400 | [diff] [blame] | 66 | ) |
| 67 | |
| 68 | ROOT_URLCONF = 'django_sample.urls' |
| 69 | |
| 70 | TEMPLATE_DIRS = ( |
Joe Gregorio | af276d2 | 2010-12-09 14:26:58 -0500 | [diff] [blame] | 71 | # Put strings here, like "/home/html/django_templates" |
Joe Gregorio | e48a491 | 2010-09-27 15:05:36 -0400 | [diff] [blame] | 72 | # Always use forward slashes, even on Windows. |
| 73 | # Don't forget to use absolute paths, not relative paths. |
| 74 | os.path.join(os.path.dirname(__file__), 'templates') |
| 75 | ) |
| 76 | |
| 77 | INSTALLED_APPS = ( |
| 78 | 'django.contrib.admin', |
| 79 | 'django.contrib.auth', |
| 80 | 'django.contrib.contenttypes', |
| 81 | 'django.contrib.sessions', |
| 82 | 'django.contrib.sites', |
Joe Gregorio | c4fc095 | 2011-11-09 12:21:11 -0500 | [diff] [blame] | 83 | 'django_sample.plus' |
Joe Gregorio | e48a491 | 2010-09-27 15:05:36 -0400 | [diff] [blame] | 84 | ) |