experiements with admintemplates

This commit is contained in:
Lorenz Padberg 2022-07-14 13:53:07 +02:00
parent 7bb3e06903
commit 2d36f8a131
3 changed files with 36 additions and 0 deletions

2
.gitignore vendored
View File

@ -47,3 +47,5 @@ server/media/
# test reports
client/cypress/test-reports/
server/test-reports/
*.dump
.direnv

View File

@ -24,3 +24,24 @@ To see the backup schedule
To download a backup use
`heroku pg:backups:download --app <appname>`
### Load a backup locally
Be careful since you download user data as well. Therefore use preprod app by
default, it is anonimized. And more or less in sync with the prod app.
Downlaoad backup
`heroku pg:backups:download --app <appname>`
Load dump file into your db
To download a backup
`pg_restore --verbose --clean --no-acl --no-owner -h localhost -U skillbox -d skillbox latest.dump`
Add
python manage.py migrate
python manage.py dummy_users

View File

@ -0,0 +1,13 @@
{% extends "modeladmin/index.html" %}
{# The title field for a page in the page listing, when in 'explore' mode #}
{% load static %}
{% block content %}
<div>Saletti</div>
{# {{ block.super }}#}
{# <div class="object">#}
{# <img src="{% get_media_prefix %}{{ instance.image }}"/>#}
{# </div>#}
{% endblock %}