
django
Sexy cat
这个作者很懒,什么都没留下…
展开
-
[Errno 5] Input/output error
[Errno 5] Input/output errordjango上线项目报此错误 。经过检查是将views.py里的无用的print语句给注释掉就ok了!原创 2020-05-14 22:07:48 · 2569 阅读 · 1 评论 -
centos7下django+uwsgi+nginx项目上线
centos7下的django项目上线和部署1.在服务器上安装虚拟环境和uwsgi2.在服务器上安装nginx3.将项目文件拷到服务器/data/www/文件夹下(没有自己建)**4.配置在项目文件里配置uwsgi文件 ( uconfig.ini文件) **[uwsgi]socket = 127.0.0.1:8000 chdir = /data/www/django #项目...原创 2020-05-08 11:01:14 · 252 阅读 · 0 评论 -
django 网页获取访问者的IP地址及用户名
django获取访问网页的电脑ip地址及用户名1.先创建模型class Viewip(models.Model): nid = models.AutoField(primary_key=True) username = models.CharField(max_length=64) user_ip = models.CharField(max_length=64) ...原创 2020-04-26 21:17:27 · 4762 阅读 · 1 评论 -
(535, b'Login Fail. Please enter your authorization code to login. More information in http://servic
(535, b’Login Fail. Please enter your authorization code to login. More information in http://service.mail.qq.com/cgi-bin/help?subtype=1&&id=28&&no=1001256’)在django中写邮箱验证的时候一直报登录失败,请...原创 2020-04-08 13:01:54 · 4170 阅读 · 1 评论 -
linux服务器下django+nginx+uwsgi上线部署命令记事本
django+nginx+uwsgi上线部署命令记事本1.线上服务器安装虚拟开发环境2.安装nginx,uwsgi,mysql3.上传项目4.创建配置uconfig.ini文件5.更改nginx配置文件6.重启nginx service nginx restart7.启动uwsgi uwsgi uconfig.ini如果启动uwsgi出现端口占用 执行 ps ...原创 2020-03-28 17:43:01 · 200 阅读 · 0 评论 -
解决django模板渲染富文本编辑器中的不解释标签问题
{{ article_content | safe }}原创 2020-03-26 21:07:25 · 537 阅读 · 0 评论 -
Unknown column ‘last_login’ in 'field list'
Unknown column ‘last_login’ in ‘field list’在django中用自带的用户认证系统创建用户时报的莫名其妙的字段,本字段并没有定义,折腾了好久重新做了数据迁移才可以了。last_login是用户认证系统里的东西。...原创 2020-03-18 17:36:37 · 1171 阅读 · 0 评论 -
Could not parse the remainder: '=' from '=' 问题解决
Could not parse the remainder: ‘=’ from ‘=’ 问题解决在使用django框架内置模板渲染页面时出现了Could not parse the remainder: '=' from '=' 的问题![在这里插入图片描述](https://img-blog.csdnimg.cn/20200313184935251.png?x-oss-process=ima...原创 2020-03-13 18:53:03 · 15373 阅读 · 1 评论