A simple to-do list app built with Django.
-
Create a virtual environment (recommended):
python3 -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install Django:
pip install django
-
Run migrations (creates the database):
python3 manage.py migrate
-
Create an admin account (optional, for /admin panel):
python3 manage.py createsuperuser
python3 manage.py runserverThen visit: http://127.0.0.1:8000/
Admin panel: http://127.0.0.1:8000/admin/
todoproject/ # Project config (settings, main urls)
todos/ # The todo app
├── models.py # Data structure (Todo model)
├── views.py # Request handling logic
├── urls.py # URL routing for this app
├── templates/ # HTML templates
└── static/ # CSS, images
