WIP: Cleanup

This commit is contained in:
Neill Cox 2024-08-10 14:26:12 +10:00
parent 715224653d
commit 6ee942f8dc
37 changed files with 547 additions and 2591 deletions

View file

View file

@ -0,0 +1,24 @@
from django.contrib.auth.models import User
from django.core.management import BaseCommand
def create_users():
user = User.objects.create_user(
username="neill",
is_superuser=True,
first_name="Neill",
last_name="Cox",
email="neill@neill.id.au",
is_staff=True,
is_active=True,
date_joined="2024-07-31T00:00:00.000Z",
password="password",
)
# user.save()
class Command(BaseCommand):
help = "Load some initial data"
def handle(self, *args, **options):
create_users()

View file

@ -0,0 +1,24 @@
from django.contrib.auth.models import User
from django.core.management import BaseCommand
def create_users():
user = User.objects.create_user(
username="neill",
is_superuser=True,
first_name="Neill",
last_name="Cox",
email="neill@neill.id.au",
is_staff=True,
is_active=True,
date_joined="2024-07-31T00:00:00.000Z",
password="password",
)
# user.save()
class Command(BaseCommand):
help = "Load some initial data"
def handle(self, *args, **options):
create_users()