0

誰の助けにも感謝します。私のジャンゴはテンプレートファイルを見つけることができません

Template loader Error:
Django tried loading these templates, in this order:
Using loader django.template.loaders.filesystem.Loader:
Using loader django.template.loaders.app_directories.Loader:
/usr/local/lib/python2.7/dist-packages/django/contrib/auth/templates/rmdemo/rib.html (File      does not exist)
/home/shepherd/artekcloud/media/rmdemo/nodegraph/templates/rmdemo/rib.html (File does not exist)
/home/shepherd/artekcloud/media/rmdemo/rmdemo/templates/rmdemo/rib.html (File does not exist)
/home/shepherd/artekcloud/media/rmdemo/minikatana/templates/rmdemo/rib.html (File does not exist)
/usr/local/lib/python2.7/dist-packages/django/contrib/admin/templates/rmdemo/rib.html (File does not exist)

そして、ここにトレースバックがあります

Traceback:
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response 115.  response = callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/shortcuts/__init__.py" in render  53.     return HttpResponse(loader.render_to_string(*args, **kwargs),
File "/usr/local/lib/python2.7/dist-packages/django/template/loader.py" in render_to_string 170.         t = get_template(template_name)
File "/usr/local/lib/python2.7/dist-packages/django/template/loader.py" in get_template  146.     template, origin = find_template(template_name)
File "/usr/local/lib/python2.7/dist-packages/django/template/loader.py" in find_template 139.     raise TemplateDoesNotExist(name)

Exception Type: TemplateDoesNotExist at /rmdemo/rib/
Exception Value: rmdemo/rib.html

レンダー ショートカットを使用してテンプレートをレンダリングしています

return render(request,'rmdemo/rib.html', {'loggedin': loggedin})

これがどのように起こるかについて何か考えはありますか?django がアプリケーション フォルダ内のテンプレート フォルダではなくメディア フォルダを調べるのはなぜですか?

テンプレート ファイルは app フォルダーの下にあると確信しています。

4

1 に答える 1