First commit of claude's rework in django + vanillajs fronted

This commit is contained in:
Gérald Colangelo
2026-04-02 11:24:30 +02:00
parent 7710a876df
commit fde92f92db
163 changed files with 84852 additions and 15 deletions

View File

@@ -0,0 +1,21 @@
from django.contrib.auth import get_user_model
from django.core.management.base import BaseCommand
class Command(BaseCommand):
help = 'Create a default superuser for development (idempotent).'
def handle(self, *args, **options):
User = get_user_model()
email = 'admin@shooterhub.local'
if User.objects.filter(email=email).exists():
self.stdout.write(f'Admin already exists: {email}')
return
User.objects.create_superuser(
username='admin',
email=email,
password='changeme',
)
self.stdout.write(self.style.SUCCESS(
f'Superuser created — email: {email} password: changeme'
))