当前位置:网站首页>Unit 10 Continuous Tuning
Unit 10 Continuous Tuning
2022-08-02 14:19:00 【czy1206527605】
1. Front-end and back-end separation Vue interface
1.django preparations
1. Add the following code in the setting
INSTALLED_APPS = ['corsheaders', # cross domain'rest_framework']MIDDLEWARE = ['corsheaders.middleware.CorsMiddleware', # cross-domain middleware]CORS_ORIGIN_ALLOW_ALL = True
2.vue instance
1. Create vue
vue create project name
2. New cross-domain file
3.Write cross-domain file code
4. Package
Create a new folder utils, and create a request.js file in it for packaging
5. Create a front-end vue project in src-views to prepare
6. Change route
7.Hook function, describe the index page code for front-end and back-end joint debugging
8. Render the page
边栏推荐
猜你喜欢
随机推荐
Supervision strikes again, what about the market outlook?2021-05-22
微信小程序-最近动态滚动实现
瑞吉外卖笔记——第05讲Redis入门
一维卷积神经网络_卷积神经网络的基础知识「建议收藏」
[ROS]roscd和cd的区别
数据机构---第六章图---图的遍历---选择题
drf序列化器-Serializer
Unit 7 ORM table relationships and operations
Flask框架的搭建及入门
drf源码分析与全局捕获异常
泡利不相容原理适用的空间范围(系统)是多大?
[ROS] The difference between roscd and cd
What are the file encryption software?Keep your files safe
RowBounds[通俗易懂]
Gstreamer Plugin注册流程详解
[ROS] (06) ROS Communication - Topic Communication
深度学习框架pytorch快速开发与实战chapter3
FFmpeg 的AVCodecContext结构体详解
shell脚本“画画”
Audio processing: floating point data stream to PCM file