Added test data for reuse

This commit is contained in:
Viswamedha Nalabotu 2025-12-18 23:36:28 +00:00
parent b9252068c4
commit 36226679c0
3 changed files with 28 additions and 0 deletions

View file

@ -37,6 +37,7 @@ RUN pip install --no-cache-dir -r prod.txt
COPY manage.py manage.py COPY manage.py manage.py
COPY config config COPY config config
COPY apps apps COPY apps apps
COPY data data
COPY --from=node /app/build ./build COPY --from=node /app/build ./build

View file

@ -6,5 +6,6 @@ set -o nounset
python manage.py makemigrations python manage.py makemigrations
python manage.py migrate python manage.py migrate
python manage.py loaddata data/site/users.json
python manage.py collectstatic --noinput python manage.py collectstatic --noinput
exec /usr/local/bin/daphne -b 0.0.0.0 -p 8000 config.asgi:application exec /usr/local/bin/daphne -b 0.0.0.0 -p 8000 config.asgi:application

26
data/site/users.json Normal file
View 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": []
}
}
]