我对使用django框架相当陌生,最近我用它创建了一个系统,它通过html表单向mysql db提交数据。供参考的材料:from django.shortcuts import renderfrom django.contrib('uname') and request.POST.get('email') and request.<e
当我在: localhost:8000/Scan加载视图时,它会引发以下问题: if request.method == 'POST': # If the form has been submitted...form = SubmitDomain(request.POST) # A form bound to t
我正在尝试使用Django创建一个网站,我有几个需要登录的视图。但是,我不知道如何验证用户。我对web开发非常陌生(这是我的第一个项目),所以如果我说得不清楚,请提出后续问题。以下是一些可能提供上下文的代码:from django.http import HttpResponseRedirect if