In my app directory, I have created custom_context_processors.py, here is the content of it:
`from .forms import LoginForm
def login_form_renderer(request):
form = LoginForm()
return {'custom_login_form': form, }`
and then, in my project's** settings.py** I have added it below context_processors, as follows:
'app_name.custom_context_processors.login_form_renderer',
and finally, I use it in base.html as follows:
{% custom_login_form %}
and that's when I get the following error:
Invalid block tag on line 74: 'custom_login_form'. Did you forget to register or load this tag?
I am using Django 5.0.1
Any help?