Django view site as different user from admin without knowing / resetting password

Is there a way in Django for an admin to view the site as a different user.

This can be used to debug custom errors.

Since we don't know the password, the only solution I have found is to reset the password from djangoadmin and log in for that user.

+3


source to share


1 answer


This functionality is not built into django, fortunately, like many such cases, the community can help.

django-hijack

does what you need:



django-hijack allows superusers to hijack (= login as) and run as a different user.

+6


source







All Articles