Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8391040
create_test_users.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
504 B
Subscribers
None
create_test_users.py
View Options
# Copyright (C) 2021 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
User
=
get_user_model
()
username
=
"user"
password
=
"user"
email
=
"user@swh-web.org"
if
not
User
.
objects
.
filter
(
username
=
username
)
.
exists
():
User
.
objects
.
create_user
(
username
,
email
,
password
)
File Metadata
Details
Attached
Mime Type
text/x-python
Expires
Jun 4 2025, 6:37 PM (14 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3348396
Attached To
rDWAPPS Web applications
Event Timeline
Log In to Comment