1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Fixed #25584 -- Documented a pip error when installing Django 1.9.

This commit is contained in:
Tim Graham
2015-10-21 14:59:03 -04:00
parent 8b5acda821
commit ee66d8dd7d
2 changed files with 25 additions and 1 deletions

View File

@@ -1012,6 +1012,29 @@ a Django application with this structure::
jquery.js
jquery.min.js
.. _syntax-error-old-pip-django-19:
``SyntaxError`` when installing Django with pip ≤ 1.5.6
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
When installing Django 1.9+ with pip ≤ 1.5.6, you'll see::
Compiling django/conf/app_template/apps.py ...
File "django/conf/app_template/apps.py", line 4
class {{ camel_case_app_name }}Config(AppConfig):
^
SyntaxError: invalid syntax
Compiling django/conf/app_template/models.py ...
File "django/conf/app_template/models.py", line 1
{{ unicode_literals }}from django.db import models
^
SyntaxError: invalid syntax
It's safe to ignore these errors (Django will still install just fine), and you
can avoid them by upgrading pip to a more recent version using
``pip install -U pip``.
Miscellaneous
~~~~~~~~~~~~~