repos
/ status-django master

status-django

mirror archived upstream

Self-hostable uptime monitor and status page on Django: HTTP checks, Lighthouse audits, SEO crawls, and email and Discord alerts.

djangodockerhandcodedpythonself-hostedsqlitestatus-pageuptime-monitoringvite

481 B · 22 lines · Python Raw History
 1from django.db import migrations
 2
 3
 4def create_superuser(apps, schema_editor):
 5    """
 6    Makes the initial admin superuser with the username admin and the password
 7    admin.
 8    """
 9    User = apps.get_model('accounts', 'User')
10    User.objects.create_superuser(username='admin', password='admin')
11
12
13class Migration(migrations.Migration):
14
15    dependencies = [
16        ('accounts', '0001_initial'),
17    ]
18
19    operations = [
20        migrations.RunPython(create_superuser),
21    ]