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:
@@ -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
|
||||
~~~~~~~~~~~~~
|
||||
|
||||
|
||||
Reference in New Issue
Block a user