- 博客(4)
- 收藏
- 关注
原创 ubantu安装nginx
nginx安装 下载组件 nginx下载地址 http://nginx.org/en/download.html 打开此网址,然后找到要下载的包,右击复制链接地址然后用如下命令进行操作 sudo wget 复制的链接地址 pcre库下载地址,用于解析正则 sudo wget https://nchc.dl.sourceforge.net/project/pcre/pcre/8.42/p...
2019-02-23 10:27:35
315
原创 在使用django+python时,解决Ajax跨域问题
1、views.py文件中加装饰器 # 引入包 from django.views.decorators.csrf import csrf_exempt # 在定义视图时,添加装饰器 @csrf_exempt def edituser(request): if request.method == "POST": id = request.POST.get('id', No...
2019-01-09 13:57:18
136
原创 Mysql语句
Flask框架SQL语句使用 查询语句 # 根据id查询所有 sql = “select * from news where id=%s” % id cur.execute(sql) res = cur.fetchone() # sql = “select id,username,level from users limit %s,2” % ((page-1)*2) cur.execute(s...
2019-01-08 14:52:31
107
4
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人