由于不小心将migrations目录下的0001_initial.py误删,运行makemigrations报错: manage.py@travel > makemigrations "C:\Program Files (x86)\JetBrains\PyCharm 2016.2.3\bin\run Read More
posted @ 2020-08-11 02:02 sewen Views(1055) Comments(0) Diggs(0) Edit
参考:https://www.cnblogs.com/liweiweicode/p/11526010.html 1、设置虚拟机 2、网络设置 3、进入centos 设置相关属性 进入网络配置目录: cd /etc/sysconfig/network-scripts/ 1)、每个虚拟机配置的文件名称一 Read More
posted @ 2020-08-11 01:07 sewen Views(242) Comments(0) Diggs(0) Edit
ERROR exception 132 Internal Server Error: /meiduo_admin/goods/specs/ Traceback (most recent call last): File "D:\python_learn\meiduo_project\env\lib\ Read More
posted @ 2020-08-10 19:28 sewen Views(2378) Comments(1) Diggs(1) Edit
django项目中比较时间参数操作数据库是,产生warning: RuntimeWarning: DateTimeField User.date_joined received a naive datetime (2020-08-01 00:00:00) while time zone suppor Read More
posted @ 2020-08-07 14:43 sewen Views(2796) Comments(0) Diggs(0) Edit
Traceback (most recent call last): File "D:\python_learn\meiduo_project\env\lib\site-packages\django\utils\autoreload.py", line 228, in wrapper fn(*ar Read More
posted @ 2020-08-06 16:45 sewen Views(939) Comments(0) Diggs(0) Edit
查询后发现是,因MarkupSafe==1.0 版本较低, 其引用Feature的方式from setuptools import Feature在新版本的setuptools包中已被弃用,所以导致了上文出现的bug。那解决思路就清晰了,如下思路取一即可。 升级 MarkupSafe==1.1.1 Read More
posted @ 2020-08-06 16:37 sewen Views(1904) Comments(0) Diggs(0) Edit
首先去 Github nvm-windows 下载最新版本的nvm-setup.zip,解压后得到nvm-setup.exe nvm安装成功 修改镜像源 nvm node_mirror https://npm.taobao.org/mirrors/node/ nvm npm_mirror https Read More
posted @ 2020-08-05 23:28 sewen Views(134) Comments(0) Diggs(0) Edit
1.安装应用 2. 进入settings.json文件 3.添加一下"background.styles"键值对在原来的字典中,添加结果如下;修改file路径为自己的本机的图片路径,然后重启; { "window.zoomLevel": 0, "editor.fontSize": 21, "edit Read More
posted @ 2020-08-05 04:54 sewen Views(596) Comments(0) Diggs(0) Edit
进入设置 进入settings.json文件修改下图中框起来的字段为自己想设置的字体即可; 若没有json文件就自己创建,若没有fontFamily参数就增加. Read More
posted @ 2020-08-05 04:29 sewen Views(1065) Comments(0) Diggs(0) Edit
在安装django过滤插件时报错,如下: (venv) D:\python_learn\restfullearn\RESTAPI>pip install django-filter Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simpl Read More
posted @ 2020-08-04 18:28 sewen Views(1066) Comments(0) Diggs(0) Edit