Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/18.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Django 2.0操作错误:游标“_django_curs_139683611834112_1“;不存在_Django_Python 3.x_Cursor_Operational - Fatal编程技术网

Django 2.0操作错误:游标“_django_curs_139683611834112_1“;不存在

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 = [

错误的子标题为:

“模板呈现期间出错

在…/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 =             [                                  
    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>