Django 2.0操作错误:游标“_django_curs_139683611834112_1“;不存在
错误的子标题为: “模板呈现期间出错 在…/base.html中,第0行出现错误 光标“\u django\u curs\u 139683611834112\u 1”不存在 当前,在运行带有docker的Ubuntu的服务器上使用Django 2.0和Python 3.6。通过以下流加载空白URL时出错: URL.py:Django 2.0操作错误:游标“_django_curs_139683611834112_1“;不存在,django,python-3.x,cursor,operational,Django,Python 3.x,Cursor,Operational,错误的子标题为: “模板呈现期间出错 在…/base.html中,第0行出现错误 光标“\u django\u curs\u 139683611834112\u 1”不存在 当前,在运行带有docker的Ubuntu的服务器上使用Django 2.0和Python 3.6。通过以下流加载空白URL时出错: URL.py: from dashboard2.account_views_new import AccountView '''urlpatterns = [
from dashboard2.account_views_new import AccountView
'''urlpatterns = [
url(r'^$', AccountView.as_view(), name='home'),
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
观点:
class AccountView(TemplateView):
template_name = 'fv1/dash_nav.html'
def get(self, request):
this_form = forms.ThisForm()
that_form = forms.ThatForm()
forms = Form.objects.all()
things = Things.objects.all()
return render(request, self.template_name)
def post(self, request):
this = that1.objects.all()
that = this1.objects.all()
return render(request, self.template_name, {data})
base.html(在第0行引发错误):
{%load static%}
是什么导致了这个错误
<!-- update this to include headers and such in jynja -->
<!DOCTYPE html>
<html lang="en">
{% load static %}
<head>