Added test data for reuse
This commit is contained in:
parent
b9252068c4
commit
36226679c0
3 changed files with 28 additions and 0 deletions
|
|
@ -37,6 +37,7 @@ RUN pip install --no-cache-dir -r prod.txt
|
|||
COPY manage.py manage.py
|
||||
COPY config config
|
||||
COPY apps apps
|
||||
COPY data data
|
||||
|
||||
COPY --from=node /app/build ./build
|
||||
|
||||
|
|
|
|||
|
|
@ -6,5 +6,6 @@ set -o nounset
|
|||
|
||||
python manage.py makemigrations
|
||||
python manage.py migrate
|
||||
python manage.py loaddata data/site/users.json
|
||||
python manage.py collectstatic --noinput
|
||||
exec /usr/local/bin/daphne -b 0.0.0.0 -p 8000 config.asgi:application
|
||||
|
|
|
|||
26
data/site/users.json
Normal file
26
data/site/users.json
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
[
|
||||
{
|
||||
"model": "users.user",
|
||||
"pk": 1,
|
||||
"fields": {
|
||||
"password": "pbkdf2_sha256$1000000$nMVGqZDLEC02Wdtbe3nPDy$78r4VTfd5TqOsQLliKOpLjtZk5U/GRm3cs7PZ/4F7pc=",
|
||||
"last_login": "2025-12-18T17:25:21.306Z",
|
||||
"is_superuser": false,
|
||||
"created_at": "2025-12-07T15:21:09.891Z",
|
||||
"updated_at": "2025-12-07T15:28:16.772Z",
|
||||
"uuid": "b85095eb-36fe-4061-9871-f5183b536963",
|
||||
"email_address": "admin@gmail.com",
|
||||
"first_name": "a",
|
||||
"last_name": "a",
|
||||
"date_of_birth": "2003-12-14",
|
||||
"bio": "",
|
||||
"timezone": "UTC",
|
||||
"avatar_url": "",
|
||||
"is_active": true,
|
||||
"is_staff": true,
|
||||
"role": "manager",
|
||||
"groups": [],
|
||||
"user_permissions": []
|
||||
}
|
||||
}
|
||||
]
|
||||
Loading…
Reference in a new issue