摘要:
1.下载 DjangoUeditor3 压缩包 https://github.com/twz915/DjangoUeditor3 2.安装 pip install DjangoUeditor3-master.zip 3.配置 settings.py INSTALLED_APPS = [ ... 'x 阅读全文
摘要:
1.安装django-cors-headers pip install django-cors-headers 2.配置INSTALLED_APPS: INSTALLED_APPS = [ ... 'corsheaders',#处理跨域 ] 3.配置MIDDLEWARE(注意上下位置,不能颠倒): 阅读全文
摘要:
1.安装uwsgi pip install uwsgi 2.在项目根目录新建uwsgi.ini,内容如下: [uwsgi] socket = 0.0.0.0:8001 socket-time = 900 chdir = /home/xxx/project/djangoPro module = dja 阅读全文
摘要:
小程序端: wx.login({ success: function (res) { var code = '' code = res.code wx.request({ url: 'https://xxxx', method: 'POST', data: { appid: 'xxxxx', sec 阅读全文
摘要:
1.下载nodejs wget https://npm.taobao.org/mirrors/node/v12.4.0/node-v12.4.0-linux-x64.tar.xz 2.解压 tar -xvf node-v12.4.0-linux-x64.tar.xz 3.测试 cd node-v12 阅读全文
摘要:
1.安装依赖 apt-get install build-essential libpcre3 libpcre3-dev libssl-dev 2.创建文件夹 mkdir ~/tools cd tools 3.下载nginx wget http://nginx.org/download/nginx- 阅读全文
摘要:
1 <!-- 自定义指令 --> 2 <input type="text" class="form-control" v-model="keywords" v-focus> 3 4 //定义全局指令 5 6 Vue.directive('focus',{ 7 bind:function(el){ 8 阅读全文