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

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page