base setup

This commit is contained in:
2026-01-07 12:09:20 +05:30
commit 0c275efea1
278 changed files with 11228 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
from django.core.management.base import BaseCommand
from at_django_boilerplate.accounts.models import CustomUser
from django.db.utils import IntegrityError
class Command(BaseCommand):
help = 'Add predefined tags to the database'
def handle(self, *args, **kwargs):
tmp = CustomUser.objects.create(email='admin@rys.com',first_name='Admin',last_name='User')
tmp.save()
tmp.set_password('1234')
tmp.is_superuser = True
tmp.is_active = True
tmp.is_staff = True
tmp.save()
self.stdout.write(self.style.SUCCESS("✅ Seeded Accounts & Businesses"))