No changes detected
需要在makemigrations后面加应用名称,即python3 manage.py makemigrations App,App是我的应用名称
下拉框制作:
model方面问题:
删除form表单中空白的id和value
修改css不生效
django.core.exceptions.ImproperlyConfigured: You’re using the staticfiles app without having set the STATIC_ROOT setting to a filesystem path.
换端口
model获取当前登录用户的用户名
TypeError: init() missing 1 required positional argument: ‘on_delete’
外键导入加入:on_delete=models.CASCADE
无法migrate,无法建立表,但是却能建立001,:
先输入:python manage.py migrate --fake APPNAME zero
再输出:python manage.py migrate APPNAME
修改密码用户密码乱码报错:密码不正确
修改密码:
django.contrib.auth.models.User.DoesNotExist: User matching query does not exist.
未登录
ValueError: Field ‘id’ expected a number but got ‘布偶猫’.
type查询改成money查询



