experiements with admintemplates
This commit is contained in:
parent
7bb3e06903
commit
2d36f8a131
|
|
@ -47,3 +47,5 @@ server/media/
|
|||
# test reports
|
||||
client/cypress/test-reports/
|
||||
server/test-reports/
|
||||
*.dump
|
||||
.direnv
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 %}
|
||||
Loading…
Reference in New Issue