报错如下: (venv) D:\python_learn\restfullearn\RESTAPI>python manage.py startapp book Traceback (most recent call last): File "manage.py", line 22, in <mod Read More
posted @ 2020-07-30 23:10 sewen Views(318) Comments(0) Diggs(0) Edit
报错:ImportError: No module named 'winrandom'处理:修改python3安装目录下的 lib/Crypto/Random/OSRNG/nt.py 文件中找到 import winrandom 修改为:from Crypto.Random.OSRNG import Read More
posted @ 2020-07-30 03:37 sewen Views(477) Comments(0) Diggs(0) Edit
报错如下: (env) D:\python_method>pip install alipay_sdk_python-3.3.398-py3-none-any.whl Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Proce Read More
posted @ 2020-07-30 01:40 sewen Views(5433) Comments(1) Diggs(1) Edit
Traceback (most recent call last): File "manage.py", line 22, in <module> execute_from_command_line(sys.argv) File "D:\python_learn\meiduo_project\env Read More
posted @ 2020-07-28 15:06 sewen Views(708) Comments(0) Diggs(0) Edit
在运行docker容器时可以加如下参数来保证每次docker服务重启后容器也自动重启: docker run --restart=always 如果已经启动了则可以使用如下命令: docker update --restart=always <CONTAINER ID> Read More
posted @ 2020-07-27 14:19 sewen Views(444) Comments(0) Diggs(0) Edit
进入docker配置目录: cd etc/docker创建daemon.json文件: touch daemon.json编辑该文件 : vim daemon.json写入内容:{“registry-mirrors”:[“https://registry.docker-cn.com”]}最后保存,就 Read More
posted @ 2020-07-25 02:31 sewen Views(817) Comments(0) Diggs(0) Edit
今天准备用虚拟机安装docker发现yum下载不能用了 Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile epel/x86_64/metalink | 6.1 kB 00:00:00 * epel: mi Read More
posted @ 2020-07-24 05:43 sewen Views(5860) Comments(0) Diggs(0) Edit
D:\python_learn\meiduo_project\meiduo_mall\meiduo_mall\apps\goods\views.py:38: UnorderedObjectListWarning: Pagination may yield inconsistent results w Read More
posted @ 2020-07-23 18:03 sewen Views(900) Comments(1) Diggs(1) Edit
1.根据课件上的教材重写Storage的url函数,方法如下: from django.core.files.storage import Storage from django.conf import settings class FastDFSStorage(Storage): """自定义文件 Read More
posted @ 2020-07-23 05:20 sewen Views(580) Comments(3) Diggs(1) Edit
(env) D:\python_learn\meiduo_project\meiduo_mall>python manage.py shell Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 bit ( Read More
posted @ 2020-07-22 18:57 sewen Views(2883) Comments(1) Diggs(2) Edit