{"library":"django-loginas","type":"library","category":null,"description":"django-loginas is a Django app that integrates a \"Log in as user\" button directly into the Django user administration page. This allows superusers or authorized staff to quickly impersonate other user accounts for testing or support purposes. The library is currently at version 0.3.14 and maintains a regular release cadence with updates addressing bug fixes, new features, and Django version compatibility.","language":"python","status":"active","version":"0.3.14","tags":["django","admin","authentication","impersonation","superuser","staff"],"last_verified":"Thu May 21","install":[{"cmd":"pip install django-loginas","imports":["INSTALLED_APPS = [\n    # ...\n    'loginas',\n    # ...\n]","from django.urls import path, include\nfrom django.contrib import admin\n\nurlpatterns = [\n    path('admin/', include('loginas.urls')), # MUST be before admin.site.urls for Django 3.2+\n    path('admin/', admin.site.urls),\n    # ...\n]","from django.contrib import admin\nfrom django.contrib.auth.admin import UserAdmin\nfrom .models import CustomUser\n\n@admin.register(CustomUser)\nclass CustomUserAdmin(UserAdmin):\n    change_form_template = 'loginas/change_form.html'"]}],"homepage":null,"github":"https://github.com/stochastic-technologies/django-loginas","docs":null,"changelog":null,"pypi":"https://pypi.org/project/django-loginas/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":1.6,"avg_import_s":null,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/django-loginas/compatibility"}}