How to jump from one APP view to another APP view in django? Of course, I also hope to be able to carry parameters during the jump.Transfer all request data received by one APP to another APP
Someone recommends this method. I tested it and found no problems.
from other_app.views import other_view
def first_view(request):
return other_view(request)
I don’t know whether this method is the best method, and I haven’t found out whether this method has potential risks. If you have a master, please guide
I’m going to guess that there’s some additional context associated with this that you haven’t supplied here, because as written, this isn’t something you need/want to do.
In the basic case, what you really want is to have your link to first_view
be changed to the url for other_view