SyntaxError: Generator expression must be parenthezised / python manage.py migrate
Solution 1:
You’re not doing anything wrong; this is a problem between Django and Python 3.7. Django has a fix, but that fix hasn’t made it into a new version yet.
You can install the stable version of Python, Python 3.6, in the meantime.
Solution 2:
This is a known incompatibility between Django and Python 3.7. A fix has already been merged into Django 2.x branches and backported into 1.11 branch.
To solve this issue, simply update Django to at least version 1.11.17 (or 2.x) or you can downgrade Python to version 3.6.
Solution 3:
Also, upgrading Django solved my problem
On your terminal,
$ pip install -U Django
or see here
Solution 4:
Only Django==2.2 will be supported to Python 3.7 so upgrading your Django Version will solve your problem
pip3 install django --upgrade