Skip to content

Commit

Permalink
Merge pull request #1071 from jdufresne/fix-example
Browse files Browse the repository at this point in the history
Fix "make example" command to run the dev server
  • Loading branch information
matthiask committed Sep 6, 2018
2 parents 86746c5 + d7bb3a3 commit 405ca2f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions example/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit 405ca2f

Please sign in to comment.