Skip to main content

Wagtail SPA routing tools

Project description

Установка

pip install wagtail-spa-routing

Подключение

Добавить в INSTALLED_APPS:

'wagtail_spa.apps.WagtailSpaConfig',

Подключить роуты в urls.py:

path('api/wagtail-spa/', include('wagtail_spa.urls', namespace='wagtail_spa')),

Для добавления возможности возврата драфтового объекта, использовать RetrieveDraftMixin, который основан на rest_framework.mixins.RetrieveModelMixin и предполагает что вид возвращает объект методом get_object.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for wagtail-spa-routing, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size wagtail_spa_routing-0.1.1-py2.py3-none-any.whl (4.2 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size wagtail-spa-routing-0.1.1.tar.gz (3.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page