当前位置:网站首页>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
边栏推荐
- Excel protects worksheets and workbooks from damage
- Summary of Android development posts I interviewed in those years (attached test questions + answer analysis)
- MySQL - data read / write separation, multi instance
- View analysis of scenic spots in ArcGIS
- What is a blocking queue? What is the implementation principle of blocking queue? How to use blocking queue to implement producer consumer model?
- QML advanced (V) - realize all kinds of cool special effects through particle simulation system
- FAQ of foreign lead and alliance Manager
- AWS eks add cluster user or Iam role
- IEEE Transactions on industrial information (TII)
- Record your own dataset with d435i, run orbslam2 and build a dense point cloud
猜你喜欢
Summary of MySQL de duplication methods
协程与多进程的完美结合
Supplément: annotation
Improving 3D object detection with channel wise transformer
C language: spoof games
Fusobacterium -- symbiotic bacteria, opportunistic bacteria, oncobacterium
QML进阶(五)-通过粒子模拟系统实现各种炫酷的特效
Introduction to raspberry pie 3B - system installation
zynq平臺交叉編譯器的安裝
MySQL queries users logged in for at least N consecutive days
随机推荐
Coinbase:关于跨链桥的基础知识、事实和统计数据
Practice and exploration of knowledge map visualization technology in meituan
CLion+OpenCV identify ID number - detect ID number
Flink's important basics
Inverse system of RC low pass filter
IEEE Transactions on industrial information (TII)
C language: spoof games
Mysql50 basic exercises
Windows remote connection to redis
Chapter 4 - understanding standard equipment documents, filters and pipelines
Alibaba tip: it is better to create threads manually
The object needs to add additional attributes. There is no need to add attributes in the entity. The required information is returned
Supplement 14: cmake practice project notes (to be continued 4 / 22)
JS generates a specified number of characters according to some words
Manually write smart pointer shared_ PTR function
Use recyclerview to realize left-right side-by-side classification selection
QML advanced (IV) - drawing custom controls
Small volume Schottky diode compatible with nsr20f30nxt5g
A lifetime of needs, team collaboration can play this way on cloud nailing applet
229. Find mode II