- 博客(3)
- 收藏
- 关注
原创 关于连接MySQL报mysqlclient 1.3.13 or newer is required; you have 0.9.3的问题
问题一: 初学django,在使用django连接MySQL时,在运行python manage.py migrate时,报错如下: django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3 后经了解,应该是django的版本限制问题,于是进入C:\P...
2020-04-01 16:48:45
490
原创 在创建博客超链接的时候,django报错:without providing an app_name is not supported. Set the app_name attribute in t
报错信息: without providing an app_name is not supported. Set the app_name attribute in the included module, or pass a 2-tuple con 具体代码如下: from django.contrib import admin from django.urls import path,in...
2020-03-16 16:04:10
202
原创 django.conf.urls 和django.urls的区别
学习django时,发现教程和PC里面的代码有不同,教程写的是: url(r'^index/$',include('app.urls')) 但是PC中自动生成的代码却是: path('index/',include('app.urls')) 网上找了一下资料,发现这只是写法不一样,在python1.x中用的是url的写法,2.x以后用的是path的写法,结果都是一样的,此处记载下来方便和我一样...
2020-03-13 14:29:48
1856
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅