-1

I created a virtual environment than I installed Django successfully but when I try to create a project with Django-admin start-project project-name Django create an empty folder?

I'm expecting a folder with file with manage.py in the folder

1
  • try to deactivate the venv, delete that particular venv then create another Venv and install your dependencies Commented Jun 2, 2024 at 19:09

1 Answer 1

1

You have an error in the command you ran. You ran Django-admin start-project project-name but the correct command is:

django-admin startproject projectname .

Don't forget to add the period . it is important because it tells the script to install Django in your current directory.

Also do this in your active virtual environment. See How to create a Django project?.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.