{"id":15024461,"url":"https://github.com/sjkingo/django-runas","last_synced_at":"2026-01-05T07:08:04.698Z","repository":{"id":57421770,"uuid":"82357405","full_name":"sjkingo/django-runas","owner":"sjkingo","description":"Impersonate a user using the Django admin","archived":false,"fork":false,"pushed_at":"2017-03-22T01:07:43.000Z","size":14,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T08:44:26.802Z","etag":null,"topics":["authentication","django","django-application","python"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sjkingo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-18T03:08:25.000Z","updated_at":"2024-02-01T21:06:39.000Z","dependencies_parsed_at":"2022-09-10T13:21:53.938Z","dependency_job_id":null,"html_url":"https://github.com/sjkingo/django-runas","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjkingo%2Fdjango-runas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjkingo%2Fdjango-runas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjkingo%2Fdjango-runas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjkingo%2Fdjango-runas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sjkingo","download_url":"https://codeload.github.com/sjkingo/django-runas/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244937832,"owners_count":20535127,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["authentication","django","django-application","python"],"created_at":"2024-09-24T20:00:23.320Z","updated_at":"2026-01-05T07:08:04.659Z","avatar_url":"https://github.com/sjkingo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# django-runas\n\nImpersonate a user using the Django admin.\n\n[![Latest version](https://img.shields.io/pypi/v/django-runas.svg)](https://pypi.python.org/pypi/django-runas)\n[![Python support](https://img.shields.io/pypi/pyversions/django-runas.svg)](https://github.com/sjkingo/django-runas)\n[![BSD License](https://img.shields.io/pypi/l/django-runas.svg)](https://pypi.python.org/pypi/django-runas)\n\n## Installation and configuration\n\n1. `$ pip install django-runas`\n2. Add `runas` to the bottom of your `INSTALLED_APPS`\n3. Add `runas.middleware.RunAsMiddleware` to the bottom of `MIDDLEWARE_CLASSES` or `MIDDLEWARE`\n4. Add the following to your `urlpatterns`, underneath where you have included the admin site (this is important):\n\n    ```python\n    url(\"^admin/\", include(admin.site.urls)),\n    url(\"^admin/runas/\", include('runas.urls')),\n    ```\n\n5. (Optional) If you would like a banner to display on each page of the site when you are impersonating a user,\n   add the following to your base template:\n\n    ```django\n    {% load runas_tags %}\n    {% runas_banner %}\n    ```\n\n6. Log in to the admin and navigate to the change page of a user, and you will see in the top right a new\n   button called ***Impersonate \\\u003cuser\\\u003e***\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjkingo%2Fdjango-runas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsjkingo%2Fdjango-runas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjkingo%2Fdjango-runas/lists"}