Skip to content
Advertisement

How to redirect from a view to another view In Django

This is a view written for my posts app in Django. The problem is that after filling the update form and submitting it happens successfully. But it creates confusion for the user because the same HTML page is there and how can I redirect into the updated object?

JavaScript

Advertisement

Answer

You can use redirect from http shortcuts.

JavaScript

Here is the link to official docs.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement