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" - "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"> <ul class="list-none! text-sm [&>li]:m-0! mt-1 uppercase">
<li><em>Senior Systems Engineer</em> @ Torchbox</li> <li>Senior Systems Engineer @ Torchbox</li>
<li><em>Security Team</em> & <em>Performance Working Group</em> @ Wagtail</li> <li>Security Team & Performance Working Group @ Wagtail</li>
</ul> </ul>
<ul class="list-none! text-sm [&>li]:m-0! mt-3"> <ul class="list-none! text-sm [&>li]:m-0! mt-3">
@ -28,17 +28,24 @@ addons:
--- ---
layout: cover layout: cover
background: https://cdn.jsdelivr.net/gh/wagtail/wagtail@main/.github/wagtail-screenshot-with-browser.png background: /intranet.png
--- ---
# Setting the scene # Setting the scene
--- ---
layout: cover layout: cover
background: /site-history.png
--- ---
# Site history report # Site history report
---
layout: image
image: /chat.png
backgroundSize: contain
---
--- ---
layout: section layout: section
--- ---
@ -49,7 +56,7 @@ layout: section
layout: section layout: section
--- ---
# _Partial_ restores from backups # _Partially_ restoring from backups
--- ---
layout: section layout: section
@ -118,7 +125,7 @@ layout: section
<div class="pt-5"> <div class="pt-5">
```python ```python {all|3-5|all}
from django.core import serializers from django.core import serializers
class NoM2MSerializer(Serializer): class NoM2MSerializer(Serializer):
@ -151,7 +158,9 @@ layout: section
--- ---
## 4a. ## 4a.
# Deserialize # [De]{.italic}serialize
### `manage.py loaddata`
--- ---
layout: center layout: center
@ -188,12 +197,10 @@ with open("deleted-models.json", "w") as f:
``` ```
--- ---
layout: section layout: fact
--- ---
#### 5. ### 5.
### Test
## Test
# **Test!** # **Test!**
--- ---
@ -205,9 +212,22 @@ class: flex justify-center flex-col items-center
### 6. ### 6.
# Showtime! # 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 layout: cover
background: https://cdn.jsdelivr.net/gh/wagtail/wagtail@main/.github/wagtail-screenshot-with-browser.png background: /sysadmin.png
--- ---
# Conclusion # Conclusion
@ -218,10 +238,10 @@ layout: end
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 <QRCode
:width="150" :width="170"
:height="150" :height="170"
data="https://wagtail.org/blog/recovering-deleted-pages-and-models/" data="https://wagtail.org/blog/recovering-deleted-pages-and-models/"
:dotsOptions="{ color: 'white' }" :dotsOptions="{ color: 'white' }"
/> />