diff options
| author | Anssi Kääriäinen | 2012-08-27 15:05:05 +0300 | 
|---|---|---|
| committer | Anssi Kääriäinen | 2012-08-27 15:30:57 +0300 | 
| commit | 18bd5da161716eea743fcce1e9f82f0e79f1505c (patch) | |
| tree | 2cf40976b4af69d858f60c18afa03ebd3c651bb1 /test_pgsql.py | |
| parent | c1f7b3a273600b94dc433902c0a480dc8874d26a (diff) | |
| download | django-debug-toolbar-18bd5da161716eea743fcce1e9f82f0e79f1505c.tar.bz2 | |
Made possible to use DJANGO_SETTINGS_MODULE in testing
Also added a dummy test_pgsql settings file.
Diffstat (limited to 'test_pgsql.py')
| -rw-r--r-- | test_pgsql.py | 28 | 
1 files changed, 28 insertions, 0 deletions
| diff --git a/test_pgsql.py b/test_pgsql.py new file mode 100644 index 0000000..28c0178 --- /dev/null +++ b/test_pgsql.py @@ -0,0 +1,28 @@ +from django.conf import global_settings +DATABASES={ +    'default': { +        'ENGINE': 'django.db.backends.postgresql_psycopg2', +        # Edit the below settings before use... +        'USER': '', +        'NAME': '', +        'HOST': '', +        'PASSWORD': '', +    } +} +INSTALLED_APPS=[ +    'django.contrib.auth', +    'django.contrib.admin', +    'django.contrib.contenttypes', +    'django.contrib.sessions', +    'django.contrib.sites', + +    'debug_toolbar', + +    'tests', +] +MIDDLEWARE_CLASSES=global_settings.MIDDLEWARE_CLASSES + ( +    'debug_toolbar.middleware.DebugToolbarMiddleware', +) +ROOT_URLCONF='' +DEBUG=False +SITE_ID=1 | 
