Architecture¶
Purpose¶
MKP Works Platform is a modular Django monolith that owns identity, credentials, billing, credits, communication, authorization, and usage accounting for portfolio products.
Overview¶
Layout¶
accounts— custom user model and session loginsites_registry— portfolio ClientSite registrycapabilities— capability + SiteCapability enablementforms_gateway/leads/email_gateway— forms and mailbilling/wallets/actions— Stripe, ledger, reservations, protected actionsai_gateway— named AI capabilitiesapi— DRF public + server APIsdashboard— customer UIsdk— JS hosting + Python client + generatorlanding— public developer portal and Platform Control Center
Identity chain¶
Email/password → MKP User → Django OAuth Toolkit OIDC → portfolio product
Configuration¶
Environment variables in .env.example. Settings split under mkpworks/settings/.
Security¶
Staff tools live under /admin/ with Django session auth. Portfolio clients never receive AI/Stripe secrets. Ledger is append-only.