![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
django
pororo421
这个作者很懒,什么都没留下…
展开
-
django 创建数据有外键字段时时报错
ValueError: Cannot assign “‘2’”原代码def regist(request): msg = "" if request.method == "POST": username = request.POST.get('username').strip().lower() password = request.POST.get('password') password2 = request.POST.get('pas原创 2020-05-23 22:39:14 · 876 阅读 · 0 评论 -
创建django项目
配置settings1.INSTALLED_APPS 添加app名称INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'summer' #原创 2020-05-18 22:47:24 · 139 阅读 · 0 评论