SyntaxError: Generator expression must be parenthezised / python manage.py migrate

前端 未结 8 1738
慢半拍i
慢半拍i 2020-12-02 22:45

I\'m really new in programming and I wanted to follow the Djangogirls tutorial, but I\'m stucked now. In the tutorial, I am here:

To create a database

相关标签:
8条回答
  • 2020-12-02 23:18

    The Django Girls tutorial version in English has just switched to Django 2.0 which should make it compatible to Python 3.7. (Django 2.0 includes a backport of the fix mentioned in Ry-'s answer.)

    So everyone beginning the tutorial now should be fine with Python 3.7.

    If you've already begun the tutorial you'd have to start again at the Django installation chapter. You'll want to do that in a new directory (either delete or rename your current djangogirls directory or choose a different name for the new directory) as the files generated by

    django-admin print startproject mysite .
    

    depend on the Django version in use.

    0 讨论(0)
  • 2020-12-02 23:20

    Also, upgrading Django solved my problem

    On your terminal,

    $ pip install -U Django
    

    or see here

    0 讨论(0)
提交回复
热议问题