摘要: 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) 编辑