How adnanummer/ncct works
NCCT DXB is a server-rendered Django homepage and enquiry workflow, not a multi-page catalogue. Visitors browse homepage content and submit an enquiry; the server validates and protects the submission before storing it for staff review. The architecture also includes editable categories, featured products and projects, capabilities, published metrics, structured data, and one-time content seeding. Edges reflect the shown homepage and enquiry calls plus README-documented behavior; unsampled template and admin wiring is not expanded.
Main entry points: core/views.py Homepage assembly · seed_homepage.py Homepage seeding · enquiries/views.py Enquiry endpoint · security.py Submission security
Components 20
Homepage experience
- URL routing
config/urls.py - Homepage assembly
core/views.py - Rendered homepage
templates/home.html - Structured data
core/templatetags/structured_data.py - Homepage interactions
static/js/site.js
Managed content
- Homepage settings
core/models.py - Capabilities
core/models.py - Verified metrics
core/models.py - Lighting categories
products/models.py - Verified products
products/models.py - Featured projects
projects/models.py - Image content
core/models.py
Enquiry workflow
- Form validation
enquiries/forms.py - Submission security
enquiries/security.py - Enquiry endpoint
enquiries/views.py - Enquiry records
enquiries/models.py - Rate windows
enquiries/models.py
Content operations
- Homepage seeding
core/management/commands/seed_homepage.py
Other components
- Visitor
- Content administrators
Connections 36
- Visitor → URL routing: requests page
README.md - URL routing → Homepage assembly: routes homepage
config/urls.py - URL routing → Enquiry endpoint: routes submissions
config/urls.py - Homepage assembly → Homepage settings: reads
core/views.py - Homepage assembly → Capabilities: reads
core/views.py - Homepage assembly → Verified metrics: reads published
core/views.py - Homepage assembly → Lighting categories: reads
core/views.py - Homepage assembly → Verified products: reads featured
core/views.py - Homepage assembly → Featured projects: reads featured
core/views.py - Homepage assembly → Form validation: initializes form
core/views.py - Homepage assembly → Submission security: issues token
core/views.py - Homepage assembly → Rendered homepage: renders
core/views.py - Rendered homepage → Structured data: renders JSON-LD
- Visitor → Homepage interactions: uses interactions
README.md - Visitor → Enquiry endpoint: submits enquiry
README.md - Enquiry endpoint → Form validation: validates
enquiries/views.py - Enquiry endpoint → Submission security: checks token and rate
enquiries/views.py - Enquiry endpoint → Enquiry records: stores submission
enquiries/views.py - Submission security → Rate windows: updates counts
enquiries/security.py - Submission security → Enquiry records: checks duplicates
enquiries/views.py - Content administrators → Enquiry records: reviews records
README.md - Content administrators → Homepage settings: edits content
README.md - Content administrators → Lighting categories: edits content
README.md - Content administrators → Verified products: edits content
README.md - Content administrators → Featured projects: edits content
README.md - Content administrators → Capabilities: edits content
README.md - Content administrators → Verified metrics: publishes
README.md - Homepage seeding → Homepage settings: initializes
core/management/commands/seed_homepage.py - Homepage seeding → Lighting categories: initializes
core/management/commands/seed_homepage.py - Homepage seeding → Verified products: initializes
core/management/commands/seed_homepage.py - Homepage seeding → Featured projects: initializes
core/management/commands/seed_homepage.py - Homepage seeding → Capabilities: initializes
core/management/commands/seed_homepage.py - Homepage settings → Image content: inherits
core/models.py - Lighting categories → Image content: inherits
products/models.py - Verified products → Image content: inherits
products/models.py - Featured projects → Image content: inherits
projects/models.py