diff options
| author | Rob Hudson | 2010-02-11 14:19:30 -0800 | 
|---|---|---|
| committer | Rob Hudson | 2010-02-11 14:19:30 -0800 | 
| commit | 9327cd86b2c9f1db0108c97e630c6d5610e65b0d (patch) | |
| tree | 30244cedcf7daf60e6540a75d6875546832232cc /example/settings.py | |
| parent | 98d919189d5b25057cb0cb7ee486a591a1f6cead (diff) | |
| download | django-debug-toolbar-9327cd86b2c9f1db0108c97e630c6d5610e65b0d.tar.bz2 | |
Added example project directory.
Currently this allows for easy manual testing a few other Javascript libraries
and whether the debug toolbar javascript conflicts with them.
Diffstat (limited to 'example/settings.py')
| -rw-r--r-- | example/settings.py | 34 | 
1 files changed, 34 insertions, 0 deletions
| diff --git a/example/settings.py b/example/settings.py new file mode 100644 index 0000000..06e153d --- /dev/null +++ b/example/settings.py @@ -0,0 +1,34 @@ +import os +PROJECT_PATH = os.path.realpath(os.path.dirname(__file__)) + +ADMIN_MEDIA_PREFIX = '/admin_media/' +DATABASE_ENGINE = 'sqlite3' +DATABASE_NAME = 'example.db' +DEBUG = True +INSTALLED_APPS = ( +    'django.contrib.auth', +    'django.contrib.admin', +    'django.contrib.contenttypes', +    'django.contrib.sessions', +    'django.contrib.sites', +    'debug_toolbar', +) +INTERNAL_IPS = ('127.0.0.1',) +MEDIA_ROOT = os.path.join(PROJECT_PATH, 'media') +MEDIA_URL = '/media' +MIDDLEWARE_CLASSES = ( +    'django.middleware.common.CommonMiddleware', +    'django.contrib.sessions.middleware.SessionMiddleware', +    'django.contrib.auth.middleware.AuthenticationMiddleware', +    'debug_toolbar.middleware.DebugToolbarMiddleware', +) +ROOT_URLCONF = 'example.urls' +SECRET_KEY = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890abcd' +SITE_ID = 1 +TEMPLATE_CONTEXT_PROCESSORS = ( +    'django.core.context_processors.auth', +    'django.core.context_processors.media', +    'django.core.context_processors.request', +) +TEMPLATE_DEBUG = DEBUG +TEMPLATE_DIRS = (os.path.join(PROJECT_PATH, 'templates')) | 
