Skip to content

Instantly share code, notes, and snippets.

@dmitrii-kalashnikov
Created September 24, 2019 22:34
Show Gist options
  • Save dmitrii-kalashnikov/a8963ff5728717c644b67731b357201a to your computer and use it in GitHub Desktop.
Save dmitrii-kalashnikov/a8963ff5728717c644b67731b357201a to your computer and use it in GitHub Desktop.
TemplateDoesNotExist
TemplateDoesNotExist at /bra/
base1.html
Request Method: GET
Request URL: http://127.0.0.1:8000/bra/
Django Version: 2.2.4
Exception Type: TemplateDoesNotExist
Exception Value:
base1.html
Exception Location: /usr/local/lib/python3.7/site-packages/django/template/backends/django.py in reraise, line 84
Python Executable: /usr/local/bin/python
Python Version: 3.7.4
Python Path:
['/data',
'/usr/local/bin',
'/usr/local/lib/python37.zip',
'/usr/local/lib/python3.7',
'/usr/local/lib/python3.7/lib-dynload',
'/usr/local/lib/python3.7/site-packages']
Server time: Tue, 24 Sep 2019 22:18:48 +0000
Template-loader postmortem
Django tried loading these templates, in this order:
Using engine django:
django.template.loaders.filesystem.Loader: /data/brain/templates/base1.html (Source does not exist)
django.template.loaders.app_directories.Loader: /usr/local/lib/python3.7/site-packages/django/contrib/admin/templates/base1.html (Source does not exist)
django.template.loaders.app_directories.Loader: /usr/local/lib/python3.7/site-packages/django/contrib/auth/templates/base1.html (Source does not exist)
django.template.loaders.app_directories.Loader: /data/face/templates/base1.html (Source does not exist)
django.template.loaders.app_directories.Loader: /data/accounts/templates/base1.html (Source does not exist)
django.template.loaders.app_directories.Loader: /usr/local/lib/python3.7/site-packages/versatileimagefield/templates/base1.html (Source does not exist)
django.template.loaders.app_directories.Loader: /usr/local/lib/python3.7/site-packages/crispy_forms/templates/base1.html (Source does not exist)
Error during template rendering
In template /data/face/templates/face/base_face.html, error at line 1
base1.html
1 {% extends 'base1.html'%}
2
3 {% block admin-panel %}
4 <div class="dropdown">
5 <button class="btn btn-light dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
6 Create
7 </button>
8 <div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
9 <a class="dropdown-item" href="{% url 'post_create_url'%}">Post</a>
10 <a class="dropdown-item" href="{% url 'tag_create_url'%}">Tag</a>
11 </div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment