Django 1.7 migration files do not support Python 3.2
|Reported by:||Trey Hunner||Owned by:||loic84|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Steps to reproduce:
- Run "python manage.py makemigrations appname" on a new app
- Run "python3.2 manage.py migrate" (with Django installed in python3.2 site-packages)
- View traceback due to syntax error. Example:
File "/.../django-email-log/email_log/migrations/0001_initial.py", line 14 (u'id', models.AutoField(verbose_name=u'ID', serialize=False, auto_created=True, primary_key=True)), ^ SyntaxError: invalid syntax
The syntax error is due to the use of the u prefix in front of string literals.
In my opinion, Python 3.2 support is unimportant because Python 3.3 made so many syntactic improvements. However, Python 3.2 support is currently noted in the documentation.
Change History (7)
comment:1 Changed 3 years ago by
|Severity:||Normal → Release blocker|
|Triage Stage:||Unreviewed → Accepted|