使用方法
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)
| 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
|