🛠️ 1. Install Django

Make sure you have Django installed in your virtual environment or globally:

pip install django

Check version:

django-admin --version


📁 2. Create a Django Project (Flat Layout)

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


▶️ 3. Run the Development Server

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.