Basic Setup
Requirements:
- Django 4.2 or 5.0
- Wagtail 5.2 or 6.0
To set up:
- Run
python3 pip install wagtail-content-import
. - Add
'wagtail_content_import'
toINSTALLED_APPS
abovewagtail.admin
-
Add the urls: include
wagtail_import.urls
in yoururlpatterns
inurls.py
. This could look like:from django.urls import include, path from wagtail_content_import import urls as wagtail_content_import_urls urlpatterns += [ path('', include(wagtail_content_import_urls)), ]
Note that
wagtail_content_import.urls
must be abovewagtail.urls
in yoururlpatterns
. -
Add the relevant pickers:
- To import from Google Docs, add
'wagtail_content_import.pickers.google'
toINSTALLED_APPS
abovewagtail.admin
, then follow the steps given in Google Docs Setup - To import from OneDrive/SharePoint, add
'wagtail_content_import.pickers.microsoft'
toINSTALLED_APPS
abovewagtail.admin
, then follow the steps given in Microsoft Setup - To import from local files, add
'wagtail_content_import.pickers.local'
toINSTALLED_APPS
abovewagtail.admin
,
- To import from Google Docs, add
-
You're now ready to set up how content will be imported to your Page models: see Basic Usage