problem description
TemplateDoesNotExist
the environmental background of the problems and what methods you have tried
checked no less than 50 web pages, including Google,stackoverflow, etc.
related codes
/ / Please paste the code text below (do not replace the code with pictures)
TemplateDoesNotExist at / single/433
show_content/ ellipsis / 433.html
Request Method: GET
Request URL: ellipsis
Django Version: 2.1.1
Exception Type: TemplateDoesNotExist
Exception Value:
show_content/ ellipsis / 433.html
Exception Location: / usr/local/lib/python3.6/dist-packages/django/template/loader.py in get_template, Line 19
Python Executable: / usr/local/bin/uwsgi
Python Version: 3.6.3
Python Path:
[".",
",
"/ usr/lib/python36.zip",
"/ usr/lib/python3.6",
"/ usr/lib/python3.6/lib-dynload",
"/ usr/local/lib/python3.6/dist-packages",
"/ usr/lib/python3/dist-packages"]
Server time: Sat, 20 Oct 2018 05:49:20 + 0000
Template-loader postmortem
Django tried loading these templates, in this order:
Using engine django:
django.template.loaders.filesystem.Loader: / home/zhixing/templates/show_content/ Sina / 433.html (Source does not exist)
django.template.loaders.app_directories.Loader: / usr/local/lib/python3.6/dist-packages/django/contrib/admin/templates/show_content/ ellipsis / 433.html (Source does not exist)
django.template.loaders.app_directories.Loader: / usr/local/lib/python3.6/dist-packages/django/contrib/auth/ Templates/show_content/ omits / 433.html (Source does not exist)
what"s weird is that there"s no problem with permissions on ubuntu, and the path shown on the error page is so correct that I can even paste it directly from xftp to open it. The
project was developed on win10 before it was released to the server, everything is fine, and everything that needs to be changed has been changed. Includes the path to inherit the template.
Project uses Ubuntu14 + nginx + uwsgi + django