D
D
Dmitry2015-03-09 18:20:28
Django
Dmitry, 2015-03-09 18:20:28

Creating a new project with the method "django-admin.py startproject mysite" throws the following error?

[email protected]:~/uwsgi-tutorial$ source bin/activate
(uwsgi-tutorial)[email protected]:~/uwsgi-tutorial$ django-admin.py startproject mysite
Traceback (most recent call last):
File "/home/dima /uwsgi-tutorial/bin/django-admin.py", line 2, in
from django.core import management
File "/home/dima/uwsgi-tutorial/lib/python2.6/site-packages/django/core/management /__init__.py", line 68
commands = {name: 'django.core' for name in find_commands(__path__[0])}
^
SyntaxError: invalid syntax

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikita Pewget, 2015-03-09
@pyHammer

If you're using Django 1.7, then your version of Python is too old for it - you need at least 2.7, and yours is 2.6, judging by the error.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question