python -m venv venv# On Linux/macOS
source venv/bin/activate
# On Windows
venv\Scripts\activatepip install -r requirements.txtpython -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())" > confidential.keypython manage.py migratepython manage.py createsuperuserRun python manage.py initial_admin_setup <yoursuperusername>
You can skip making a super user and this script will trigger superuser creation.
Link up your authenticator app using the generated key.
Now you can login as a admin in terms of roles and are also a superuser that can access the /admin panel.
python manage.py runserver# Simulate anomalies for testing (spam failed logins, multiple IPs/users)
python generate_anomalies.py
# Encrypt existing MFA secrets (automatically handled)
python manage.py encrypt_mfa_secrets
# Populate user fields with mock/filler data
python manage.py populate_user_fields