上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 45 下一页
摘要: 输入命令: pip freeze > requirements.txt 产生的文件内容如下: asgiref==3.4.0 Django==3.2.4 django-debug-toolbar==3.2.1 django-redis==5.0.0 Pillow==8.3.0 PyMySQL==1.0 阅读全文
posted @ 2021-07-14 14:55 胸怀丶若谷 阅读(225) 评论(0) 推荐(0)
摘要: nginx.exe -s reload 执行报错 错误原因: Nginx 尚未启动导致,执行 start nginx 命令开启Nginx nginx.exe -s reload 至此问题解决 阅读全文
posted @ 2021-07-14 13:33 胸怀丶若谷 阅读(3674) 评论(0) 推荐(0)
摘要: Win10系统不支持安装UWSGI, 不用尝试了 安装 pip install uwsgi windows安装报错 AttributeError: module 'os' has no attribute 'uname' 报错说明: 是因为uwsgiconfig.py文件中,os.uname()是不 阅读全文
posted @ 2021-07-14 10:45 胸怀丶若谷 阅读(2914) 评论(0) 推荐(0)
摘要: 下载链接: https://github.com/tporadowski/redis/releases 安装指导链接:https://www.redis.com.cn/redis-installation.html 一路安装完成后,进入安装目录: 文件介绍: redis-server.exe:服务端 阅读全文
posted @ 2021-07-08 10:50 胸怀丶若谷 阅读(920) 评论(0) 推荐(0)
摘要: 错误原因: 语句中缺少默认值 class Main(models.Model): img = models.CharField(max_length=255) name = models.CharField(max_length=64) trackid = models.IntegerField(d 阅读全文
posted @ 2021-07-01 16:55 胸怀丶若谷 阅读(216) 评论(0) 推荐(0)
摘要: 错误释义:在第5行中无效的块标签:'static',期望的'endblock'。你忘记登记或装载这个标签了吗? 错误原因:没有引入static文件 {% extends 'base.html' %} {% load static %} {% block ext_css %} {{block.supe 阅读全文
posted @ 2021-07-01 14:08 胸怀丶若谷 阅读(2081) 评论(1) 推荐(0)
摘要: 错误原因 在同一文件中,重复引用标签多次 解决方案: 删掉重复的标签即可。 阅读全文
posted @ 2021-07-01 14:02 胸怀丶若谷 阅读(196) 评论(0) 推荐(0)
摘要: from django.contrib import admin from django.urls import path, include urlpatterns = [ path('admin/', admin.site.urls), # 错误代码演示 # path('axf/', includ 阅读全文
posted @ 2021-06-30 15:37 胸怀丶若谷 阅读(548) 评论(0) 推荐(0)
摘要: 必须是数组或者列表类型 如下所示: # 错误# STATICFILES_DIRS = { # os.path.join(BASE_DIR, 'static'), # }# 正确 STATICFILES_DIRS = [ os.path.join(BASE_DIR, 'static'), ] 阅读全文
posted @ 2021-06-30 15:06 胸怀丶若谷 阅读(281) 评论(0) 推荐(0)
摘要: 原因是ReadMe文件不在本地中, 此时我们要执行git pull --rebase origin master命令README.md拉到本地, 任何然后执行git push origin master 另git did not exit cleanly (exit code 1) (1844 ms 阅读全文
posted @ 2021-06-29 17:28 胸怀丶若谷 阅读(1106) 评论(0) 推荐(0)
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 45 下一页