How shreys7/django-todo works
This is a small Django todo app. A user reaches the /todos list, where the app can create, update, and delete todo records; the list is rendered with a Django template. The project also exposes Django’s admin for the Todo model. The source excerpts show routing, view logic, model fields, and settings, but not template contents or database operations beyond the configured SQLite backend, so those details are represented conservatively.
Main entry points: settings.py Django settings · todoApp/urls.py Project routes · views.py Todo actions · todos/urls.py Todo routes
Components 12
Project routing
- Project routes
todoApp/urls.py - Root redirect
todoApp/views.py - Django settings
todoApp/settings.py
Todo workflow
- Todo routes
todos/urls.py - Todo actions
todos/views.py - Todo model
todos/models.py - SQLite database
db.sqlite3 - Admin registration
todos/admin.py
Presentation
- Todo page
todos/templates/todos/index.html - Base template
todos/templates/todos/base.html - Static styles
staticfiles/css/style.css
Other components
- User
Connections 12
- User → Project routes: requests page
todoApp/urls.py - Project routes → Todo routes: includes routes
todoApp/urls.py - Project routes → Root redirect: routes root
todoApp/urls.py - Root redirect → Todo routes: redirects to
todoApp/views.py - Todo routes → Todo actions: dispatches to
todos/urls.py - Todo actions → Todo model: queries and changes
todos/views.py - Todo actions → Todo page: renders list
todos/views.py - Todo model → SQLite database: stores records
- Admin registration → Todo model: registers model
todos/admin.py - Django settings → SQLite database: configures backend
todoApp/settings.py - Django settings → Todo page: enables app templates
todoApp/settings.py - Django settings → Static styles: configures static files
todoApp/settings.py