swagath
swagath

Reputation: 145

How to create Django project in Windows?

I tried of creating project in Windows. When I type django-admin.py startproject projectname it takes but it won't created in folder. Everything is installed and previous project also running fine.

Upvotes: 2

Views: 3796

Answers (2)

Vani S
Vani S

Reputation: 384

in windows 10 try running below command for python version 3.6 and higher from windows powershell:

python -m django startproject django_project_1

Upvotes: 4

Rahul
Rahul

Reputation: 11560

instead of django-admin.py startproject projectname, use

django-admin startproject projectname

In windows, open folder where you want to create the project, point to empty space and press Shift and then right mouse click. Choose the option Open Command Window Here. Then in command window, just enter above command.

Upvotes: 4

Related Questions