![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Django
圣女果十个
这个作者很懒,什么都没留下…
展开
-
git代码管理
git代码管理本项目使用git管理项目代码,代码库放在gitee码云平台。(注意,公司中通常放在gitlab私有服务器中)1. 在git平台创建工程1) 创建远程私有项目库 meiduo_302)克隆项目到本地,cd 到虚拟环境存放项目的目录下 git clone 克隆地址 2. 添加前端文件在meiduo目录中创建前端文件子目录front将前端静态附件复制到front目录下git提交git a...原创 2018-07-05 15:50:48 · 204 阅读 · 0 评论 -
name 'reload' is not defined
import sysreload(sys)sys.setdefaultencoding(‘utf-8’)以上是python2的写法,但是在python3中这个需要已经不存在了,这么做也不会什么实际意义。在Python2.x中由于str和byte之间没有明显区别,经常要依赖于defaultencoding来做转换。在python3中有了明确的str和byte类型区别,从一种类型转...原创 2019-01-16 15:16:12 · 894 阅读 · 0 评论 -
Could not find a version that satisfies the requirement corsheaders (from versions: ) No matching di
错误:Could not find a version that satisfies the requirement corsheaders (from versions: ) No matching distribution found for corsheaders解决:1、升级pippython -m pip install --upgrade pip2、安装dj...原创 2019-03-09 12:17:22 · 2625 阅读 · 0 评论 -
'Specifying a namespace in include() without providing an app_name ' django.core.exceptions.Improper
问题:File "C:\Users\User\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\urls\conf.py", line 39, in include 'Specifying a namespace in include() without providing an app_name ...原创 2019-03-09 13:48:40 · 409 阅读 · 0 评论 -
django http转换为https(转载)
1.django 默认的runserver使用的是http协议,如果需要https协议,需要以下3个库pip install django-extensionspip install django-werkzeug-debugger-runserverpip install pyOpenSSL2.配置settings文件 在INSTALLED_APPS下添加‘werkzeug...转载 2019-04-08 16:26:16 · 1384 阅读 · 0 评论