[Answered ]-Including urls of one app into urls file of another app in django

2👍

A better way to procede is :

root urls.py

urlpatterns += [
    url(r'^insti/student/', include('students.urls', namespace='students')),
    url(r'^insti/', include('institute.urls', namespace='institute')),
]

So you can use return HttpResponseRedirect(reverse("students:signin")).

If you dont want to change your urls organisation, use this :

return HttpResponseRedirect(reverse("institue:students:signin"))

Leave a comment