Add documentation on moving the myKV root node
This commit is contained in:
parent
1ec50dffe3
commit
630671ba00
|
|
@ -0,0 +1,24 @@
|
|||
Here's what was done to migrate the root page on preprod.mykv.ch, just for documentations sake
|
||||
|
||||
```python
|
||||
|
||||
from wagtail.models import Locale, Page, Site
|
||||
root = Page.objects.get(id=1)
|
||||
mykv=Page.objects.get(slug='my-kv')
|
||||
mykv.move(root, "first-child")
|
||||
|
||||
localhost=Site.objects.get(is_default_site=True)
|
||||
localhost.root_page=mykv
|
||||
localhost.save()
|
||||
|
||||
home=Page.objects.get(slug='home')
|
||||
home.delete()
|
||||
|
||||
```
|
||||
|
||||
```bash
|
||||
python manage.py migrate_translation --original kommunizieren-im-team --slug communicating-in-the-team --language en
|
||||
python manage.py migrate_translation --original kommunizieren-im-team --slug communiquer-au-sein-de-léquipe --language fr
|
||||
python manage.py migrate_translation --original zusammenarbeiten-im-team --slug collaborating-in-a-team --language en
|
||||
python manage.py migrate_translation --original zusammenarbeiten-im-team --slug collaborer-dans-une-équipe --language fr
|
||||
```
|
||||
Loading…
Reference in New Issue