From 2d36f8a131408ee8f8b339affb1ca29ca00cf479 Mon Sep 17 00:00:00 2001 From: Lorenz Padberg Date: Thu, 14 Jul 2022 13:53:07 +0200 Subject: [PATCH] experiements with admintemplates --- .gitignore | 2 ++ docs/heroku-backup.md | 21 +++++++++++++++++++ .../wagtailadmin/books/topic/index.html | 13 ++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 server/core/templates/wagtailadmin/books/topic/index.html diff --git a/.gitignore b/.gitignore index 1ffc0efb..f8086211 100644 --- a/.gitignore +++ b/.gitignore @@ -47,3 +47,5 @@ server/media/ # test reports client/cypress/test-reports/ server/test-reports/ +*.dump +.direnv diff --git a/docs/heroku-backup.md b/docs/heroku-backup.md index a3b72d9b..a820d0bb 100644 --- a/docs/heroku-backup.md +++ b/docs/heroku-backup.md @@ -24,3 +24,24 @@ To see the backup schedule To download a backup use `heroku pg:backups:download --app ` + + +### 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 ` + + +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 diff --git a/server/core/templates/wagtailadmin/books/topic/index.html b/server/core/templates/wagtailadmin/books/topic/index.html new file mode 100644 index 00000000..433719f2 --- /dev/null +++ b/server/core/templates/wagtailadmin/books/topic/index.html @@ -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 %} +
Saletti
+{# {{ block.super }}#} +{#
#} +{# #} +{#
#} +{% endblock %}