File "stdin", line 1 django-admin.py startproject mysite SyntaxError: invalid syntax
By Webdevelopmentlogics
This error may occur while creating a new project. The following can be any of the reason for this
1. Check django installed properly, and check the folder site-packages in python installed folder.
2. There can be issue with setting the PATH to the django folder and this can be solved by giving the full path
Ex: /usr/lib/python2.7/site-packages/django/bin/django-admin.py startproject mysite
3. This script should not execute from the python console. Go to the directory where you want to save the project then execute the command django-admin.py startproject mysite
1. Check django installed properly, and check the folder site-packages in python installed folder.
2. There can be issue with setting the PATH to the django folder and this can be solved by giving the full path
Ex: /usr/lib/python2.7/site-packages/django/bin/django-admin.py startproject mysite
3. This script should not execute from the python console. Go to the directory where you want to save the project then execute the command django-admin.py startproject mysite