1👍
I think your system is not finding the file django-admin.py. Use cmd and navigate to the directory that contains this file and try to execute the command from there:
python django-admin.py startproject mysite
If it works, I recommend you to create an environment variable (e.g. DJANGO_ADMIN) to point do django-admin.py so you can execute the command below from anywhere:
python %DJANGO_ADMIN% startproject mysite
EDIT:
Creating an environment variable on Windows XP:
-
Open System in Control Panel.
-
On the Advanced tab, click Environment Variables, then click the name of the user variable or system variable you want to change, as follows. Click ‘New’ to add a new variable name and value.
Creating an environment variable on Windows 7:
- Open the Start Menu and right click on Computer. Select Properties.
- Select Advanced system settings.
- In the Advanced tab, select Environment Variables.
- Select ‘New’.
Creating an environment variable on Windows 8:
Start -> All Apps -> Control panel -> System -> Advanced System Settings -> Advanced -> Environment variables.
1👍
You can Follow @AmauryMedeiros answer or you can set a path to system environment variable to C:\Python27\Scripts
.
It works…
- [Answered ]-What is type is Site.objects.get_current() in django ; it returns <SIte: example.com>. I need to serialize it
- [Answered ]-What is the meaning of 'q' in request.GET var?