How nexiemadia23/ppc-website-redesign works
This is a Django prototype for the Puerto Princesa City Government website. A visitor’s request is routed to a page view, which assembles curated prototype content and renders a template; shared navigation and site context support the page chrome. The site also provides search, an HTML site map, and crawler-facing XML sitemap and robots routes. Django models define planned editorial content and validation rules, while the README describes them as a foundation not yet wired into the prototype pages. Unsampled templates and settings are represented by their existing paths; their internal behavior is not inferred.
Main entry points: urls.py URL routing · views.py Page views · navigation.py Page inventory · sitemaps.py Sitemap generators
Components 15
Routing and context
- URL routing
config/urls.py - Shared site context
content/context_processors.py - Page inventory
content/navigation.py - Site settings
config/settings/base.py
Website content
- Page views
content/views.py - Prototype content
content/prototype_data.py - Page templates
templates - Prototype interactions
static/js/prototype.js - Search page
content/views.py
Site discovery
- Sitemap generators
content/sitemaps.py
Editorial foundation
- Editorial models
content/models.py - Django admin
content/admin.py - SQLite database
config/settings/base.py
Other components
- Visitor
- Search crawler
Connections 19
- Visitor → URL routing: requests pages
config/urls.py - Search crawler → URL routing: requests crawler files
config/urls.py - URL routing → Page views: dispatches pages
config/urls.py - URL routing → Search page: dispatches search
config/urls.py - Page views → Prototype content: reads content
content/views.py - Page views → Page templates: renders pages
content/views.py - Page views → Page inventory: uses page inventory
content/views.py - URL routing → Page inventory: builds page routes
config/urls.py - Shared site context → Page inventory: builds navigation
content/context_processors.py - Shared site context → Prototype content: reads contacts
content/context_processors.py - Site settings → Shared site context: configures template context
config/settings/base.py - Page templates → Prototype interactions: enables section navigation
README.md - URL routing → Sitemap generators: routes XML sitemap
config/urls.py - Sitemap generators → Page inventory: lists site pages
content/sitemaps.py - Sitemap generators → Prototype content: lists news articles
content/sitemaps.py - URL routing → Page views: routes robots file
config/urls.py - Django admin → Editorial models: manages content
content/admin.py - Site settings → SQLite database: configures SQLite
config/settings/base.py - Editorial models → SQLite database: stores editorial records