diff --git a/Makefile b/Makefile index 9e5c84186..800c0a579 100644 --- a/Makefile +++ b/Makefile @@ -10,8 +10,7 @@ isort_check_only: isort -rc -c debug_toolbar example tests example: - DJANGO_SETTINGS_MODULE=example.settings \ - python -m django runserver + python example/manage.py runserver jshint: node_modules/jshint/bin/jshint ./node_modules/jshint/bin/jshint debug_toolbar/static/debug_toolbar/js/*.js diff --git a/example/manage.py b/example/manage.py index 2605e3768..f33953846 100755 --- a/example/manage.py +++ b/example/manage.py @@ -2,6 +2,8 @@ import os import sys +sys.path.insert(0, os.path.dirname(os.path.dirname(__file__))) + if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "example.settings")