当前位置:网站首页>Innovation training (IX) integration
Innovation training (IX) integration
2022-04-23 04:46:00 【Scattered moon】
Use Vue.js As a front-end framework , Instead of Django Its own template engine ,Django As a server API Interface , So as to realize the separation of front and rear ends .
Create a new front-end project
- of Vue Module ( Include vue) have access to node Self contained npm Package manager installation . It is recommended to use Taobao cnpm The command line tool replaces the default npm.
npm install -g cnpm --registry=https://registry.npm.taobao.org
- use cnpm install vue-cli Scaffold tools
cnpm install -g vue-cli
- Project root directory , Create a new front-end project directory
vue-init webpack frontend
- install vue Rely on the module
cd frontend
cnpm install
cnpm install vue-resource
cnpm install element-ui
- npm run build
- settings.py
STATICFILES_DIRS = [
os.path.join(BASE_DIR, "frontend/dist/static"),
]
urls.py
url(r'^$', TemplateView.as_view(template_name="index.html")),
- Django Integrated Vue The front-end engineering
版权声明
本文为[Scattered moon]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220555418724.html
边栏推荐
- QML advanced (IV) - drawing custom controls
- 第四章 --- 了解标准设备文件、过滤器和管道
- Opencv + clion face recognition + face model training
- 程序员抱怨:1万2的工资我真的活不下去了,网友:我3千咋说
- leetcode009--用二分查找在数组中搜索目标值
- Go reflection rule
- 协程与多进程的完美结合
- leetcode003--判断一个整数是否为回文数
- SQL statement for adding columns in MySQL table
- IDE idea automatic compilation and configuration of on update action and on frame deactivation
猜你喜欢
Wechat payment function
test
win10, mysql-8.0.26-winx64. Zip installation
Supplement 14: cmake practice project notes (to be continued 4 / 22)
Detailed explanation of life cycle component of jetpack
Innovative practice of short video content understanding and generation technology in meituan
The perfect combination of collaborative process and multi process
What is a data island? Why is there still a data island in 2022?
QML进阶(四)-绘制自定义控件
补充番外14:cmake实践项目笔记(未完待续4/22)
随机推荐
Leetcode004 -- Roman numeral to integer
Opencv + clion face recognition + face model training
Leetcode009 -- search the target value in the array with binary search
Innovative practice of short video content understanding and generation technology in meituan
QML进阶(五)-通过粒子模拟系统实现各种炫酷的特效
KVM error: Failed to connect socket to ‘/var/run/libvirt/libvirt-sock‘
Eight misunderstandings that should be avoided in data visualization
The 14th issue of HMS core discovery reviews the long article | enjoy the silky clip and release the creativity of the video
Basic use of shell WC (counting the number of characters)
Druid -- JDBC tool class case
Case of using stream load to write data to Doris
Introduction to raspberry pie 3B - system installation
拼了!两所A级大学,六所B级大学,纷纷撤销软件工程硕士点!
Differences among electric drill, electric hammer and electric pick
leetcode004--罗马数字转整数
Better way to read configuration files than properties
Luogu p1858 [multi person knapsack] (knapsack seeking the top k optimal solution)
补充番外14:cmake实践项目笔记(未完待续4/22)
The perfect combination of collaborative process and multi process
Windows remote connection to redis