I am a complete beginner to Python/Django, but I want to dive right in and start experimenting. Thus I was following this guide on installing Python/Django http://devcenter.
To Windows users
using django-admin
instead of django-admin.py
worked for me in Windows.
This simply worked for me. Install django on your virtualenv:
pip install django
And then run:
django-admin startproject myprojectname
On RHEL
stock python config:
django-admin.py startproject mysite
For Windows Users first search for django-admin, right click on the file that has been found and open file location and keep it open.
Using Windows Powershell, cd into the the folder where you want to create your django project
when your in the right folder write the full path of where django-admin is located in my case I am using Anaconda 3 so the file location is
C:\Users\Sen\Anaconda3\Scripts
so in Windows PowerShell type C:\Users\Sen\Anaconda3\Scripts\django-admin.py startproject [name of project]
hope this helps!
If you´re on Windows, here´s what worked for me (using pylauncher):
$ py -m django startproject myproject
To windows users out there: I have faced this problem several times and here are the checkpoints:
When there is problem initiating a new project, make sure:
1) python is working in the command line (type in python and see if you get the console)
2) specify the full path of django-admin.py in the command
3) check django-admin.py is in the system path
4) cd the command line path to where you want the new project
Screenshot of what finally worked for me (only the last command): https://flic.kr/p/r9LJ67 (stackoverflow doesn't allow me to post pictures yet)