add superuser creation command and update settings for environment variables

This commit is contained in:
2025-05-26 23:40:57 +02:00
parent dbe83c9616
commit 4e79d7c1de
11 changed files with 168 additions and 6 deletions

9
.env.example Normal file
View File

@@ -0,0 +1,9 @@
# Django settings
DJANGO_SUPERUSER_USERNAME=admin
DJANGO_SUPERUSER_EMAIL=admin@example.com
DJANGO_SUPERUSER_PASSWORD=adminpassword
DEBUG=False
SECRET_KEY=your-secret-key
ALLOWED_HOSTS=localhost,127.0.0.1
CORS_ALLOWED_ORIGINS=http://localhost:3000,http://127.0.0.1:3000