自动生成前端vue模板的 drf插件
Project description
使用方法
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/
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
drf-vue-1.0.6.tar.gz
(135.3 kB
view details)
File details
Details for the file drf-vue-1.0.6.tar.gz.
File metadata
- Download URL: drf-vue-1.0.6.tar.gz
- Upload date:
- Size: 135.3 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50262643b6c7ce6abb3d5b270c771d41e083656c1e171c2175e8cdca02c177ac
|
|
| MD5 |
1a013f12030d0de58b7ada3fdf08139c
|
|
| BLAKE2b-256 |
9bb5b69ee5bc9da372aa6e250f1d45c488f363ea5f0f5fa96f42c1aff4014a91
|