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 %}