随笔分类 -  Python相关

1 2 下一页
python项目LINUX下部署
摘要:1、python3+nginx+uwsgi+flask 项目部署Ubuntu https://blog.csdn.net/qq_34515910/article/details/106476545 2、Python3+Gunicorn+Nginx 部署Flask项目 CentOS https://w 阅读全文
posted @ 2021-03-01 22:32 闪亮的金子 阅读(176) 评论(0) 推荐(0)
使用Python写Windows Service服务程序
摘要:资料来源https://blog.csdn.net/weixin_34075551/article/details/94455359?utm_source=app 1.背景 如果你想用Python开发Windows程序,并让其开机启动等,就必须写成windows的服务程序Windows Servic 阅读全文
posted @ 2020-12-21 11:32 闪亮的金子 阅读(4429) 评论(0) 推荐(0)
Falsk项目cookie中的 csrf_token 和表单中的 csrf_token实现
摘要:1、Falsk项目cookie中的 csrf_token 和表单中的 csrf_token实现 https://www.cnblogs.com/skaarl/p/9398307.html 2、CSRF https://blog.csdn.net/qq_41606973/article/details 阅读全文
posted @ 2020-10-14 10:00 闪亮的金子 阅读(110) 评论(0) 推荐(0)
用FLASK/Django部署Pyecharts项目
摘要:https://blog.csdn.net/weixin_41846769/article/details/104812849 阅读全文
posted @ 2020-10-07 09:07 闪亮的金子 阅读(151) 评论(0) 推荐(0)
Anaconda介绍、安装及使用
摘要:一、Windows系统安装Anaconda 启动安装时,勾选“Just Me”并点击“Next”。(注意:目标路径中不能含有空格;不要以管理员身份安装。) 在“Advanced Installation Options”中不要勾选“Add Anaconda to my PATH environmen 阅读全文
posted @ 2020-04-20 13:55 闪亮的金子 阅读(782) 评论(0) 推荐(0)
Python Web框架Tornado运行和部署
摘要:https://www.jb51.net/article/82432.htm 阅读全文
posted @ 2020-04-18 14:30 闪亮的金子 阅读(829) 评论(0) 推荐(0)
使用 Python 连接 Apache Derby 数据库
摘要:https://www.ibm.com/developerworks/cn/data/library/techarticles/dm-0505gibson/index.html 阅读全文
posted @ 2020-04-18 11:29 闪亮的金子 阅读(321) 评论(0) 推荐(0)
python连接SQLServer数据库,执行给定的查询SQL语句,并返回查询结果数据
摘要:import sys import pymssql reload(sys) sys.setdefaultencoding("utf-8") #数据库连接配置 config_dict={ 'user':'sa', 'password':'', 'host':'127.0.0.1', 'database 阅读全文
posted @ 2020-04-11 12:02 闪亮的金子 阅读(2931) 评论(0) 推荐(0)
python3 urllib.request.Request的用法
摘要:import urllib.request import urllib.parse url = 'http://127.0.0.1:8000/api/login/' headers = {'User-Agent':'Mozilla/5.0 (Windows NT 10.0; WOW64) Apple 阅读全文
posted @ 2020-03-16 21:51 闪亮的金子 阅读(2758) 评论(0) 推荐(0)
requests模块
摘要:https://blog.csdn.net/qq_36119192/article/details/82951408 阅读全文
posted @ 2020-03-16 21:49 闪亮的金子 阅读(83) 评论(0) 推荐(0)
python3中引入扩展包时的几个注意事项
摘要:一、python3引入urllib2 python3的urllib2与urllib合并了,使用时需要使用 import urllib.request 打开: response = urllib.request.urlopen("网页地址") 二、python 获取md5 #使用python 库 求M 阅读全文
posted @ 2020-03-16 15:32 闪亮的金子 阅读(170) 评论(0) 推荐(0)
Flask-sqlacodegen之ORM操作
摘要:Flask-sqlacodegen之ORM操作有两种方式: 1.模型迁移到数据库中生成表(codefirst): 需要flask-script: from flask_script import Manager from flask_migrate import Migrate ,MigrateCo 阅读全文
posted @ 2020-03-13 10:26 闪亮的金子 阅读(422) 评论(0) 推荐(0)
Python各种包下载路径
摘要:https://www.lfd.uci.edu/~gohlke/pythonlibs/#mod_wsgi 阅读全文
posted @ 2020-03-05 16:37 闪亮的金子 阅读(431) 评论(0) 推荐(0)
python在Apache中的部署
摘要:1、mod_wsgi (Apache) https://dormousehole.readthedocs.io/en/latest/deploying/mod_wsgi.html#mod-wsgi-apache 2、Windows+flask+Apache+mod_wsgi部署 https://bl 阅读全文
posted @ 2020-03-05 16:26 闪亮的金子 阅读(1241) 评论(0) 推荐(0)
Python3 基于 Nginx或Apache 部署 Django 项目
摘要:Python3 基于 Nginx 部署 Django 项目 https://blog.csdn.net/yilovexing/article/details/82969103 Windows下搭建Apache+Django+Python Web服务环境 https://www.cnblogs.com 阅读全文
posted @ 2020-03-05 15:19 闪亮的金子 阅读(327) 评论(0) 推荐(0)
Python如何发布程序
摘要:https://blog.csdn.net/wem603947175/article/details/81589729 阅读全文
posted @ 2020-03-05 15:16 闪亮的金子 阅读(275) 评论(0) 推荐(0)
pycharm运行过程中,出现python已停止工作的对话框的解决办法
摘要:在Windows7的情况下,在运行中输入“Regedit”并执行,使用注册表编辑器。 依次定位到HKEY_CURRENT_USER\Software\Microsoft\Windows\Windows Error Reporting。 在电脑右侧窗口中找到并双击打开DontshowUI,之后弹出的窗 阅读全文
posted @ 2020-02-28 09:49 闪亮的金子 阅读(2040) 评论(0) 推荐(0)
Python与数据库
摘要:链接汇总 https://www.cnblogs.com/stacklike/category/1134822.html Python与数据库[1] -> 数据库接口/DB-API[0] -> 通用标准 https://www.cnblogs.com/stacklike/p/8178637.html 阅读全文
posted @ 2020-01-05 21:46 闪亮的金子 阅读(182) 评论(0) 推荐(0)
pycharm里配置了项目虚拟环境,terminal打开并不是在虚拟环境下,如何解决
摘要:在pycharm里,点开下方的Terminal,此时默认目录为当前项目对应的根目录, 第一步:输入 cd venv\Scripts 进入Scripts目录 第二步:然后运行activate.bat激活环境就行了 第三步:输入pipenv shell进入虚拟环境,此时就进到当前项目的虚拟环境里了 阅读全文
posted @ 2019-12-31 10:24 闪亮的金子 阅读(6564) 评论(0) 推荐(0)
学习python-20191230(1)-Python Flask高级编程开发鱼书_第04章_应用、蓝图与视图函数
摘要:视频06: 1、自动导包快捷键——默认为alt + enter 键组合 选中的字符由小写变为大写——Ctrl + Shift + U键组合 2、DataRequired()——防止用户只传入一个空格 3、使用组合验证器的方式来完成校验。 从中学习构建代码的思想:把独立的功能拆开,写到不同的函数或不同 阅读全文
posted @ 2019-12-30 15:38 闪亮的金子 阅读(267) 评论(0) 推荐(0)

1 2 下一页