How jekaordjo/blog_django works
This is a Django technology blog. Editors create posts, categories, and tags in Django admin; posts are stored as drafts or published content, with Markdown converted to sanitized HTML. Readers browse paginated published posts by category or tag, open detail pages, and navigate to adjacent posts. Templates and browser scripts provide the site UI, including theme selection and back-to-top behavior. The main routes, views, models, settings, and scripts are excerpted; template behavior and some README-described capabilities are represented only where documented.
Main entry points: views.py Blog views · models.py Blog content models · static/blog Site styles and assets · templates/blog Page templates
Components 17
Content management
- Content admin
apps/blog/admin.py - Blog content models
apps/blog/models.py - Markdown rendering
apps/blog/models.py - SQLite database
blog_djn/settings.py
Web delivery
- Blog URL routing
apps/blog/urls.py - Blog views
apps/blog/views.py - Post listings
apps/blog/views.py - Post detail
apps/blog/views.py
Site presentation
- Page templates
templates/blog - Shared layout
templates/base.html - Site styles and assets
static/blog - Theme selection
static/blog/js/theme.js - Back to top
static/blog/js/back-to-top.js
Django runtime
- Project URL routing
blog_djn/urls.py - Django settings
blog_djn/settings.py
Other components
- Editor
- Reader
Connections 17
- Editor → Content admin: edits content
README.md - Content admin → Blog content models: registers models
apps/blog/admin.py - Blog content models → Markdown rendering: renders body
apps/blog/models.py - Blog content models → SQLite database: stores records
apps/blog/models.py - Django settings → SQLite database: configures
blog_djn/settings.py - Reader → Project URL routing: requests pages
README.md - Project URL routing → Blog URL routing: includes routes
blog_djn/urls.py - Blog URL routing → Blog views: dispatches requests
apps/blog/urls.py - Blog views → Blog content models: queries content
apps/blog/views.py - Blog views → Post listings: serves lists
apps/blog/views.py - Blog views → Post detail: serves details
apps/blog/views.py - Post listings → Page templates: renders list template
apps/blog/views.py - Post detail → Page templates: renders detail template
apps/blog/views.py - Page templates → Shared layout: uses shared layout
README.md - Shared layout → Site styles and assets: loads site assets
README.md - Site styles and assets → Theme selection: provides theme script
README.md - Site styles and assets → Back to top: provides scroll script
README.md