1
Fork 0

Slides tweaks
All checks were successful
/ build (push) Successful in 42s

This commit is contained in:
Jake Howard 2024-05-17 12:37:47 +01:00
parent 306d6e6ec8
commit f3b60dcf9d
Signed by: jake
GPG key ID: 57AFB45680EDD477
5 changed files with 37 additions and 17 deletions

BIN
public/chat.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

BIN
public/intranet.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

BIN
public/site-history.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 109 KiB

BIN
public/sysadmin.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

View file

@ -10,13 +10,13 @@ addons:
- "slidev-addon-qrcode"
---
# Recovering [deleted]{style="color: #fd5765"} Wagtail pages and Django models
# Recovering [deleted]{style="color: #fd5765"} Wagtail pages and/or Django models
### Jake Howard{style="color: #e85537;" }
### Jake Howard{style="color: #e85537;" .mt-10 }
<ul class="list-none! text-sm [&>li]:m-0! mt-1 uppercase font-light">
<li><em>Senior Systems Engineer</em> @ Torchbox</li>
<li><em>Security Team</em> & <em>Performance Working Group</em> @ Wagtail</li>
<ul class="list-none! text-sm [&>li]:m-0! mt-1 uppercase">
<li>Senior Systems Engineer @ Torchbox</li>
<li>Security Team & Performance Working Group @ Wagtail</li>
</ul>
<ul class="list-none! text-sm [&>li]:m-0! mt-3">
@ -28,17 +28,24 @@ addons:
---
layout: cover
background: https://cdn.jsdelivr.net/gh/wagtail/wagtail@main/.github/wagtail-screenshot-with-browser.png
background: /intranet.png
---
# Setting the scene
---
layout: cover
background: /site-history.png
---
# Site history report
---
layout: image
image: /chat.png
backgroundSize: contain
---
---
layout: section
---
@ -49,7 +56,7 @@ layout: section
layout: section
---
# _Partial_ restores from backups
# _Partially_ restoring from backups
---
layout: section
@ -118,7 +125,7 @@ layout: section
<div class="pt-5">
```python
```python {all|3-5|all}
from django.core import serializers
class NoM2MSerializer(Serializer):
@ -151,7 +158,9 @@ layout: section
---
## 4a.
# Deserialize
# [De]{.italic}serialize
### `manage.py loaddata`
---
layout: center
@ -188,12 +197,10 @@ with open("deleted-models.json", "w") as f:
```
---
layout: section
layout: fact
---
#### 5.
### Test
## Test
### 5.
# **Test!**
---
@ -205,9 +212,22 @@ class: flex justify-center flex-col items-center
### 6.
# Showtime!
---
layout: image-right
image: https://images.unsplash.com/photo-1622021134395-d26aab83c221?q=80&w=1470&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D
class: flex justify-center flex-col text-xl
---
1. Backup!
2. Transfer `deleted-models.json` to server
3. `loaddata`
4. `checktree`
5. `update_index`
6. `rebuild_reference_index`
---
layout: cover
background: https://cdn.jsdelivr.net/gh/wagtail/wagtail@main/.github/wagtail-screenshot-with-browser.png
background: /sysadmin.png
---
# Conclusion
@ -218,10 +238,10 @@ layout: end
END
<div class="absolute right-1/2 bottom-20 translate-x-1/2">
<div class="absolute right-20 bottom-1/2 translate-y-1/2">
<QRCode
:width="150"
:height="150"
:width="170"
:height="170"
data="https://wagtail.org/blog/recovering-deleted-pages-and-models/"
:dotsOptions="{ color: 'white' }"
/>