Reputation: 401
I have python, pip and django installed. I have created a virtual environment, installed Django inside it and trying to create a new project via the following command:
(venv)c:\Users\username\Desktop\venv>.\Scripts\django-admin.py startproject test_project
Instead of creating the folder test_project along with its file, my PyCharm ide automatically starts and opens the django.admin.py file.
When I check inside my venv folder, only the default folders exists and test_project is not created. Can I know how to fix this please.
Upvotes: 0
Views: 1381
Reputation: 37846
django-admin startproject test_project
it should be django-admin, not django-admin.py, If I remember correctly, it is new since 1.7
Upvotes: 3