Skip to content

Commit

Permalink
Make manage.py spit out tracebacks, without a patched django
Browse files Browse the repository at this point in the history
I first made --traceback the default in my patches to django, but this
broke several regressions tests (when Luke built .deb packages), so he reverted that change,
and I'm putting this default into our manage.py instead

(imported from commit 460253561e637d8a6692c68bbd3859f266dbf83d)
  • Loading branch information
acrefoot committed May 28, 2013
1 parent d159627 commit aedb81c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
import sys

if __name__ == "__main__":

if "--no-traceback" not in sys.argv and len(sys.argv) > 1:
sys.argv.append("--traceback")

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "humbug.settings")

from django.core.management import execute_from_command_line
Expand Down

0 comments on commit aedb81c

Please sign in to comment.