Skip to content
Advertisement

Tag: django-templates

Display image in dropdown list in django [closed]

Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago. Improve this question I’m currently working on a project and my task is to build a feature for users to rate different countries

Django 2.0 – Reverse for ‘password_change_done’ not found. ‘password_change_done’ is not a valid view function or pattern name

I’m having this error message after trying to change my app’s password. Do you have any idea of what’s causing this route to fail? Actually, it is changing the password but it isn’t rendering the success template “password_change_done.html”. Thanks! app/urls.py ERROR MESSAGE app/templates/registration/password_change_form.html app/templates/registration/password_change_done.html Thanks for your help! Answer I think the problem here is, as Tobit hints, is that

Invalid Endblock tag in django

I am receiving an error message when I go to one of my pages in my Django project, as it is saying that the End-block tag is invalid (asks whether I remembered to register or load). The error looks like this: My code for this template – (login.html) – is below: I am very confused, and I am wondering whether

Django: Use firstof of if-else block inside blocktrans

I have two variables var1 and var2. I want to do this, It gives me error that ‘blocktrans’ doesn’t allow other block tags. Because we are not allowed to use any other tag inside blocktrans, what is the solution of this kind of problem? Answer From django 1.9 onwards, you can use firstof to assign result to context. See django-docs

Advertisement