feat: scaffold Django multi-tenant project with 5 of 9 apps
Phase 1 scaffolding: config/, core/, base models, AES-256-GCM phone encryption, enums mirror apps.tenant: Tenant + Domain (django-tenants) apps.org: 11 models (OrgUnit hierarchy, Staff, audit logs) apps.account: 4 models (UserAccount as AUTH_USER_MODEL, login/password tracking) apps.permission: 7 models (RBAC + overrides + datascope + append-only changelog) apps.region: 5 models (District, BusinessArea, MetroLine, MetroStation, School) All migrations generated, manage.py check passes
This commit is contained in:
20
requirements/base.txt
Normal file
20
requirements/base.txt
Normal file
@@ -0,0 +1,20 @@
|
||||
Django==4.2.16
|
||||
django-tenants==3.7.0
|
||||
psycopg[binary]>=3.1.18,<3.3
|
||||
django-redis==5.4.0
|
||||
celery==5.4.0
|
||||
django-celery-beat==2.7.0
|
||||
django-celery-results==2.5.1
|
||||
django-storages[s3]==1.14.4
|
||||
boto3==1.35.0
|
||||
cryptography==43.0.0
|
||||
whitenoise==6.8.2
|
||||
gunicorn==23.0.0
|
||||
uvicorn[standard]==0.32.0
|
||||
sentry-sdk[django]==2.18.0
|
||||
python-decouple==3.8
|
||||
Pillow==11.0.0
|
||||
djangorestframework==3.15.2
|
||||
drf-spectacular==0.27.2
|
||||
django-htmx==1.21.0
|
||||
django-extensions==3.2.3
|
||||
13
requirements/development.txt
Normal file
13
requirements/development.txt
Normal file
@@ -0,0 +1,13 @@
|
||||
-r base.txt
|
||||
ruff==0.7.0
|
||||
black==24.10.0
|
||||
pytest-django==4.9.0
|
||||
factory-boy==3.3.1
|
||||
pytest-mock==3.14.0
|
||||
responses==0.25.3
|
||||
pytest-cov==5.0.0
|
||||
pytest-xdist==3.6.1
|
||||
django-debug-toolbar==4.4.6
|
||||
schemathesis==3.36.0
|
||||
pytest-playwright==0.6.2
|
||||
playwright==1.49.1
|
||||
1
requirements/production.txt
Normal file
1
requirements/production.txt
Normal file
@@ -0,0 +1 @@
|
||||
-r base.txt
|
||||
Reference in New Issue
Block a user