自动生成前端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.5.tar.gz
(135.2 kB
view hashes)