Задать вопрос

Тел: +7 965 3737 888





Login as Any Site user

If you are an admin of a django site and many times it feels to visualize or experience how a normal website user actually sees different pages of your website. So to get this done, we create a normal user (just for testing purposes) and check the same, which is good. But sometimes we need to actually login as the same person to resolve a issue or to trace a particular exception which only one user or a specific set of users are experiencing.

Usage:login_using_email(request, "example@example.com")

I have mentioned only the helper or core method which is responsible for the actual user "logging-in" simulation. Proper view permissions(remember I mentioned only admins should use this) can be wrapped around it. Any thoughts on improving it? Always invited....

Public Clone Url: git://gist.github.com/242439.git

Вопрос полезен? Да0/Нет0

Ответы (1):

Ответ полезен? Да0/Нет0

ВИП-сваха для брака с богачом