Установка
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.
Release files for wagtail-spa-routing 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| wagtail-spa-routing-0.1.1.tar.gz | 3.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wagtail_spa_routing-0.1.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 7.6 kB
Release files / wagtail-spa-routing-0.1.1.tar.gz
| Download URL | wagtail-spa-routing-0.1.1.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5ff588f574ca98f3d2330fa72332f3b6b1df4c9799d4c5ce440d060b81459cf3
|
|
BLAKE2b-256 checksum How to use checksums |
17b84c87186feed4c4caa30fc6fb7fbb0140e4ba6080617c35d0796b148a1560
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / wagtail_spa_routing-0.1.1-py2.py3-none-any.whl
| Download URL | wagtail_spa_routing-0.1.1-py2.py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
37cb023859cb4c9bbf34ee3a280562580b00cd9f79eb904cc1b8541059146923
|
|
BLAKE2b-256 checksum How to use checksums |
f8447642b1b00ed89043128cda9555074bb13cca1397ae1414c2125ff483e4f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|