Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question