diff options
| author | Vladislav Poluhin | 2013-04-24 15:54:17 +0800 |
|---|---|---|
| committer | Vladislav Poluhin | 2013-04-24 15:54:17 +0800 |
| commit | 4c1c4f7a8873a80f843ba683240b9d0ff0f49e4b (patch) | |
| tree | 4840de7ec2ec41d1ef7cc362803c2d0ace58d663 /runtests.py | |
| parent | 3d0467d9a4394c4b994a802e6e861ff2562dbb2b (diff) | |
| parent | 6f79f0b0ada69e1d95d97066ba78e0d18aeab3ba (diff) | |
| download | django-debug-toolbar-4c1c4f7a8873a80f843ba683240b9d0ff0f49e4b.tar.bz2 | |
Merge branch 'master' of https://github.com/django-debug-toolbar/django-debug-toolbar into sql-panel-refactor
Conflicts:
debug_toolbar/static/debug_toolbar/css/toolbar.min.css
debug_toolbar/views.py
Diffstat (limited to 'runtests.py')
| -rw-r--r-- | runtests.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/runtests.py b/runtests.py index 3432f8b..ed49824 100644 --- a/runtests.py +++ b/runtests.py @@ -1,11 +1,14 @@ #!/usr/bin/env python import sys +import os from os.path import dirname, abspath from optparse import OptionParser from django.conf import settings, global_settings -if not settings.configured: +# For convenience configure settings if they are not pre-configured or if we +# haven't been provided settings to use by environment variable. +if not settings.configured and not os.environ.get('DJANGO_SETTINGS_MODULE'): settings.configure( DATABASES={ 'default': { |
