[PYTHON] Easy proxy login with django-hijack

Introduction

This article is the 14th day of Django Advent Calendar 2016.

What to do here

I was taught by @salexkidd at the previous Tokyo Django Meetup # 9.

What is django-hijack?

https://github.com/arteria/django-hijack/

admins can log in and work on behalf of other users without having to know their credentials.

Super_user can log in as a proxy without knowing the password.

It is a function that is appreciated for service development, such as defect investigation under specific conditions and confirmation of screens that are displayed differently for each user.

You can also see it in the "ADMIN INTERFACE" section of AWESOME DJANGO.

What is django-hijack-admin?

https://github.com/arteria/django-hijack-admin

Django admin site integration for Django Hijack

The guy who makes django-hijack available from Django's admin screen.

django-hijack only provides login functionality from the following endpoints:

By using django-hijack-admin, you can log in as a proxy from the user management screen with the touch of a button.

admin-screenshot.png

in conclusion

I briefly introduced django-hijack. You can implement proxy login in less than 5 minutes with django-hijack, so give it a try!

Recommended Posts

Easy proxy login with django-hijack
Easy Grad-CAM with pytorch-gradcam
Proxy server with Docker
Easy debugging with ipdb
Easy TopView with OpenCV
Easy scraping with Python (JavaScript / Proxy / Cookie compatible version)
Implement login function with django-allauth
Easy tox environment with Jenkins
[Co-occurrence analysis] Easy co-occurrence analysis with Python! [Python]
Easy folder synchronization with Python
Easy to make with syntax
Easy image classification with TensorFlow
Easy web scraping with Scrapy
Easy Python compilation with NUITKA-Utilities
Easy HTTP server with Python
Login with django rest framework
Https access via proxy with Python web scraping was easy with requests
[LINE login] Verify state with Flask
Easy time series prediction with Prophet
[Python] Easy parallel processing with Joblib
Set up social login with Django
Be careful with easy method references
Easy Slackbot with Docker and Errbot
Dynamic proxy with python, ruby, PHP
Easy Jupyter environment construction with Cloud9
Easy GUI app with Tkinter Text
Easy to install pyspark with conda
Easy Python + OpenCV programming with Canopy
Easy email sending with haste python3
Bayesian optimization very easy with Python
Easy AWS S3 testing with MinIO
Login with PycURL and receive response
Easy Japanese font setting with matplotlib
Easy data visualization with Python seaborn.
Easy with Slack using Bot #NowPlaying
Easy to draw graphs with matplotlib
Easy parallel execution with python subprocess
Easy modeling with Blender and Python
Easy animation with matplotlib (mp4, gif)
Easy deployment environment with gaffer + fabric