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_APPSabovewagtail.admin -
Add the urls: include
wagtail_import.urlsin yoururlpatternsinurls.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.urlsmust be abovewagtail.urlsin yoururlpatterns. -
Add the relevant pickers:
- To import from Google Docs, add
'wagtail_content_import.pickers.google'toINSTALLED_APPSabovewagtail.admin, then follow the steps given in Google Docs Setup - To import from OneDrive/SharePoint, add
'wagtail_content_import.pickers.microsoft'toINSTALLED_APPSabovewagtail.admin, then follow the steps given in Microsoft Setup - To import from local files, add
'wagtail_content_import.pickers.local'toINSTALLED_APPSabovewagtail.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