2👍
for this {% extends "admin/base.html" %}
django will get first found file base.html
in subdir admin
in all template dirs, but if you want to look on source of django.contrib.admin
base.html, you can find it in the:
DJANGO_PATH/contrib/admin/templates/admin/base.html
1👍
To locate django’s base.html file, assuming you are using Linux and virtualenv and
your virtual environment folder, py_env (your own virtual environment name) folder is inside your $HOME directory. Then the path to your base.html is:
$HOME/py_env/lib/python<your_version_of_python>/site-packages/django/contrib/admin/templates/admin
For me, I use termux on Android and the full path to my base.html is:
/data/data/com.termux/files/home/py_env/lib/python3.8/site-packages/django/contrib/admin/templates/admin
0👍
Windows with Anaconda environment manager django
and base.html path is
/c/Program Files/Anaconda3/envs/myenv/lib/site-packages/django/contrib/admin/templates/admin/base.html
- [Django]-How to get access to context from Jinja2 extension
- [Django]-Function with arguments in a template. Django
- [Django]-TypeError: get() takes 2 positional arguments but 3 were given
- [Django]-Cache for everybody except staff members