python - Determine what file a syntax error coming from -
i having incredibly frustrating time trying off ground django setup. i'm sure has no-no regarding python3 , in requirements file. anyways when run command django project directory:
python3 manage.py runserver --settings=my_test_app.settings.development
the output is
syntaxerror: invalid syntax (__init__.py, line 6)
i can't, life of me, figure out __init__.py
file error message talking about. i've tried set breakpoint pdb, tried catch exception around calling code, , put print statements in of __init__
files in project no dice. have idea of might going on here? or @ least how figure out file causing syntax error? help.
i had same problem when:
starting django-twoscoops-project template
django-admin.py startproject --template=https://github.com/twoscoops/django-twoscoops- project/archive/master.zip --extension=py,rst,html project_name app_name
with django-debug-toolbar ver 0.9.4
disabling django-debug-toolbar or upgrading django-debug-toolbar in requirements.txt 1.0.1 solved problem.
Comments
Post a Comment