当前位置:网站首页>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
边栏推荐
- La caméra Unity tourne avec la souris
- Unity RawImage背景无缝连接移动
- Arduino UNO r3+LCD1602+DHT11
- Basic use of shell WC (counting the number of characters)
- Spark optimization
- Pixel mobile phone brick rescue tutorial
- [timing] empirical evaluation of general convolution and cyclic networks for sequence modeling based on TCN
- 第四章 --- 了解标准设备文件、过滤器和管道
- Luogu p1858 [multi person knapsack] (knapsack seeking the top k optimal solution)
- leetcode007--判断字符串中的括号是否匹配
猜你喜欢

POI export message list (including pictures)

Simply drag objects to the item bar

Programmers complain: I really can't live with a salary of 12000. Netizen: how can I say 3000

Small volume Schottky diode compatible with nsr20f30nxt5g

协程与多进程的完美结合

IDE idea automatic compilation and configuration of on update action and on frame deactivation

Druid -- JDBC tool class case

Record your own dataset with d435i, run orbslam2 and build a dense point cloud

Recursive call -- Enumeration of permutations

Spark optimization
随机推荐
win10, mysql-8.0.26-winx64. Zip installation
List remove an element
Arduino UNO r3+LCD1602+DHT11
The unity camera rotates with the mouse
补充番外14:cmake实践项目笔记(未完待续4/22)
POI export message list (including pictures)
FAQ of foreign lead and alliance Manager
Eight misunderstandings that should be avoided in data visualization
General enumeration constant class
Record the blind injection script
Create VPC in AWS console (no plate)
test
Leetcode008 -- implement strstr() function
The programmer starts the required application with one click of window bat
Spark small case - RDD, spark SQL
229. Find mode II
Coinbase: basic knowledge, facts and statistics about cross chain bridge
leetcode009--用二分查找在数组中搜索目标值
协程与多进程的完美结合
Wechat payment function