Page MenuHomeSoftware Heritage

create_test_admin.py
No OneTemporary

create_test_admin.py

# Copyright (C) 2019 The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU Affero General Public License version 3, or any later version
# See top-level LICENSE file for more information
from django.contrib.auth import get_user_model
username = "admin"
password = "admin"
email = "admin@swh-web.org"
User = get_user_model()
if not User.objects.filter(username=username).exists():
User.objects.create_superuser(username, email, password)

File Metadata

Mime Type
text/x-python
Expires
Tue, Jun 3, 7:38 AM (4 d, 17 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3295708

Event Timeline