Skip to main content

使用方法

1.安装

pip install drf-vue

2 . 在setting.py引入 vue

INSTALLED_APPS = [
    ....
    'vue'
]

3.在viewset中使用

from vue.mixins import VueMixin
class xxViewSet( VueMixin): 

4.访问url获取示例代码 只需要在路由后面加上/vue即可查看示例代码 eg: http://127.0.0.1:8000/api/xx/xxservice/vue/

Release files for drf-vue 1.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for drf-vue 1.0.6
File Size Uploaded
drf-vue-1.0.6.tar.gz 135.3 kB Details

Release files / drf-vue-1.0.6.tar.gz

Download URL drf-vue-1.0.6.tar.gz
Size 135.3 kB
Tags Source
SHA-256 checksum
How to use checksums
50262643b6c7ce6abb3d5b270c771d41e083656c1e171c2175e8cdca02c177ac
BLAKE2b-256 checksum
How to use checksums
9bb5b69ee5bc9da372aa6e250f1d45c488f363ea5f0f5fa96f42c1aff4014a91
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.8.2 requests/2.21.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/2.7.12

Release history Release notifications | RSS feed

This release

1.0.6 This release

1 release file

1.0.5

1 release file

1.0.4

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page