How wsvincent/lithium works
Lithium is a Django starter site. A visitor requests a page, project URL routing dispatches home/about requests to page views, and those views select templates for the response. Account routes use django-allauth; the project also supplies a custom user model and admin forms. Settings connect authentication, database, static-file serving, and optional developer tooling. The README documents further capabilities, including custom error pages and crispy forms; their detailed wiring is not shown in the sampled source.
Main entry points: settings.py Project settings · urls.py URL routing · views.py Page views · models.py Custom user
Components 18
Web pages
- Page routes
pages/urls.py - Page views
pages/views.py
Accounts
- Auth routes
- django-allauth
- Custom user
accounts/models.py - Admin forms
accounts/forms.py - User admin
accounts/admin.py
Django platform
- URL routing
django_project/urls.py - Configured database
django_project/settings.py - Project settings
django_project/settings.py - Static serving
django_project/settings.py - Crispy forms
- Debug toolbar
Presentation assets
- Page templates
templates/pages - Base template
templates/_base.html - Static assets
static - Error pages
templates
Other components
- Visitor
Connections 19
- Visitor → URL routing: requests
django_project/urls.py - URL routing → Page routes: includes
django_project/urls.py - Page routes → Page views: dispatches
pages/urls.py - Page views → Page templates: selects
pages/views.py - Page templates → Base template: extends
- URL routing → Auth routes: includes
django_project/urls.py - Auth routes → django-allauth: routes to
- Project settings → django-allauth: configures
django_project/settings.py - Project settings → Custom user: sets user model
django_project/settings.py - User admin → Admin forms: uses
accounts/admin.py - User admin → Custom user: registers
accounts/admin.py - Admin forms → Custom user: models
accounts/forms.py - Project settings → Configured database: configures
django_project/settings.py - Project settings → Static serving: configures
django_project/settings.py - Static serving → Static assets: serves
django_project/settings.py - Project settings → Crispy forms: configures
django_project/settings.py - URL routing → Debug toolbar: routes to
django_project/urls.py - Project settings → Debug toolbar: enables
django_project/settings.py - Page views → Error pages: uses