You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I followed the documentation and configured my honeypot url. so that when the user visits /admin, their entries are logged as login attempts in the database.
I ran into template errors after I installed django-fastdev where the following template tags were missing on the admin route: subtitle, site_title, is_popup, and site_header
These are probably missing because I never configured them for my original admin page. There is a ticket about the subtitle being missing in this official Django issue. https://code.djangoproject.com/ticket/32681
Steps to Reproduce
1 - Follow the doc and get honeypot intercepting /admin requests
2 - Visit /admin route
Admin login page shows as expected
3 - Pip install django-fastdev
4 - Visit /admin route again
Template errors occur
Workaround
I went into the admin_honeypot.views.AdminHoneyPot and added these four variables to get_context_data
Context
I followed the documentation and configured my honeypot url. so that when the user visits /admin, their entries are logged as login attempts in the database.
I ran into template errors after I installed django-fastdev where the following template tags were missing on the admin route: subtitle, site_title, is_popup, and site_header
These are probably missing because I never configured them for my original admin page. There is a ticket about the subtitle being missing in this official Django issue.
https://code.djangoproject.com/ticket/32681
Steps to Reproduce
1 - Follow the doc and get honeypot intercepting /admin requests
2 - Visit /admin route
Admin login page shows as expected
3 - Pip install django-fastdev
4 - Visit /admin route again
Template errors occur
Workaround
I went into the admin_honeypot.views.AdminHoneyPot and added these four variables to get_context_data
Now when I visit /admin I don't have any more template errors
Environment
django-fastdev 1.7.2
Python 3.9.7
Django 3.2.13
The text was updated successfully, but these errors were encountered: