You need to upgrade pip. 

See 
https://docs.djangoproject.com/en/1.9/releases/1.9/#syntaxerror-when-installing-django-with-pip-1-5-6

On Wednesday, 2 December 2015 12:20:49 UTC+2, Mike wrote:
>
> pip install django
>> Downloading/unpacking django
>>   Downloading Django-1.9-py2.py3-none-any.whl (6.6MB): 6.6MB downloaded
>> Installing collected packages: django
>> Compiling 
>> /Users/mike/sieve2/SIEVEENV/build/django/django/conf/app_template/apps.py 
>> ...
>>   File 
>> "/Users/mike/sieve2/SIEVEENV/build/django/django/conf/app_template/apps.py", 
>> line 4
>>     class {{ camel_case_app_name }}Config(AppConfig):
>>           ^
>> SyntaxError: invalid syntax
>> Compiling 
>> /Users/mike/sieve2/SIEVEENV/build/django/django/conf/app_template/models.py 
>> ...
>>   File 
>> "/Users/mike/sieve2/SIEVEENV/build/django/django/conf/app_template/models.py",
>>  
>> line 1
>>     {{ unicode_literals }}from django.db import models
>>                              ^
>> SyntaxError: invalid syntax
>> Successfully installed django
>> Cleaning up...
>
>
> Anyone else see this error? This was in an new virtualenv.
>
>
> On Tuesday, December 1, 2015 at 7:10:41 PM UTC-5, Tim Graham wrote:
>>
>> Django 1.9 is now available:
>>
>> https://www.djangoproject.com/weblog/2015/dec/01/django-19-released/ 
>> <https://www.google.com/url?q=https%3A%2F%2Fwww.djangoproject.com%2Fweblog%2F2015%2Fdec%2F01%2Fdjango-19-released%2F&sa=D&sntz=1&usg=AFQjCNFozbfir_f-r4-slkpZLc1yHKWz-w>
>>
>> With the release of Django 1.9, Django 1.7 has reached end-of-life. 
>> Django 1.7.11 is the final release of the 1.7 series and all users are 
>> encouraged to upgrade to Django 1.8+ as soon as possible so they can 
>> continue to receive security updates. Django 1.8 LTS will receive security 
>> updates until April 2018. Django 1.4 (the previous LTS) reached end of life 
>> on October 1, 2015. See the downloads page [1] for a table of supported 
>> versions and the future release schedule.
>>
>> [1] https://www.djangoproject.com/download/#supported-versions
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a64e46fe-938c-45c5-bcf7-ad65d17df8d1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to