Make sure you have Django installed in your virtual environment or globally:
pip install django
Check version:
django-admin --version
Navigate into the folder where you want the project (e.g., inside a Git repo folder):
mkdir myproject
cd myproject
django-admin startproject project_name .
✅ The .
at the end puts the project files directly in the current directory instead of creating a nested structure.
Resulting structure:
myproject/
├── manage.py
├── project_name/
│ ├── __init__.py
│ ├── settings.py
│ ├── urls.py
│ ├── asgi.py
│ └── wsgi.py
To check that everything is working:
python manage.py runserver
Then visit:
👉 http://127.0.0.1:8000/
You should see the Django welcome page.