摘要: 1 阿里云购买 # 1 写好的项目,在本地跑,别问访问不到,没有公网ip # 2 远程连接阿里云的服务器47.103.156.13(xshell,finalShell) # 3 ssh连接 # 4 配置前后端项目 # 5 编译前端项目,要把前端项目传到服务器(可以用软件) scp -r dist r 阅读全文
posted @ 2020-08-03 14:48 aksas 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 1 支付宝二次封装 al_pay -pem -__init__.py -pay.py -setting.py #__init__.py from .pay import alipay,gateway #pay.py from alipay import AliPay from . import se 阅读全文
posted @ 2020-08-03 14:47 aksas 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 1 区间过滤 # 借助django-filter实现区间过滤 # 实现区间过滤 ##########1 filters.py class CourseFilterSet(FilterSet): # 课程的价格范围要大于min_price,小于max_price min_price = filters 阅读全文
posted @ 2020-08-03 14:44 aksas 阅读(317) 评论(0) 推荐(0) 编辑
摘要: 1 首页轮播图异步更新 # celery.py from celery import Celery # 加载django环境 import os import django os.environ.setdefault("DJANGO_SETTINGS_MODULE", "luffyapi.setti 阅读全文
posted @ 2020-08-03 14:35 aksas 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 1 Python操作Redis之普通连接 # 1 pip3 install redis # 简单使用 from redis import Redis # conn=Redis() #连接对象 conn=Redis(host='127.0.0.1', port=6379) ret=conn.get(' 阅读全文
posted @ 2020-07-27 14:54 aksas 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 1 短信接口频率限制 # throttlings.py from rest_framework.throttling import SimpleRateThrottle class SMSThrotting(SimpleRateThrottle): scope = 'sms' def get_cac 阅读全文
posted @ 2020-07-27 14:50 aksas 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 1 登陆注册模态框 # Login.vue <template> <div class="login"> <div class="box"> <i class="el-icon-close" @click="close_login"></i> <div class="content"> <div c 阅读全文
posted @ 2020-07-27 14:48 aksas 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 1 git远程连接 # 1 码云(国内,快) # 2 新建仓库的时候,不要勾选Readme初始化这个而仓库 # 3 现在什么都没有,新建仓库 mkdir lqz_test cd lqz_test git init touch a.txt git add a.txt git commit -m "fi 阅读全文
posted @ 2020-07-27 14:47 aksas 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 1 路飞项目头部组件 1.1 路由跳转的方式 #html中路由跳转 <router-link to="/"> <img src="../assets/img/head-logo.svg" alt=""> </router-link> #js中控制路由跳转 this.$router.push('/') 阅读全文
posted @ 2020-07-27 14:36 aksas 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 1 后台Response和异常和日志封装 # utils/response from rest_framework.response import Response class APIResponse(Response): def __init__(self,code=1,msg='成功',resu 阅读全文
posted @ 2020-07-20 14:42 aksas 阅读(182) 评论(0) 推荐(0) 编辑