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.

Source Distribution

wagtail-spa-routing-0.1.1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

wagtail_spa_routing-0.1.1-py2.py3-none-any.whl (4.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file wagtail-spa-routing-0.1.1.tar.gz.

File metadata

  • Download URL: wagtail-spa-routing-0.1.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for wagtail-spa-routing-0.1.1.tar.gz
Algorithm Hash digest
SHA256 5ff588f574ca98f3d2330fa72332f3b6b1df4c9799d4c5ce440d060b81459cf3
MD5 3ca18b87eceff564e3bc25a8e64a8b2e
BLAKE2b-256 17b84c87186feed4c4caa30fc6fb7fbb0140e4ba6080617c35d0796b148a1560

See more details on using hashes here.

File details

Details for the file wagtail_spa_routing-0.1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: wagtail_spa_routing-0.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for wagtail_spa_routing-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 37cb023859cb4c9bbf34ee3a280562580b00cd9f79eb904cc1b8541059146923
MD5 21bd910ab7769ecfd47c6916d0df043e
BLAKE2b-256 f8447642b1b00ed89043128cda9555074bb13cca1397ae1414c2125ff483e4f5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page