{ "info": { "author": "Matthew Rich", "author_email": "matthew@technivore.org", "bugtrack_url": null, "classifiers": [ "Framework :: Django", "License :: OSI Approved :: Apache Software License" ], "description": "``django-masquerade`` Documentation\n===================================\n\nMasquerade is a simple app to allow site administrators (IE, any user with\nis_staff = True) to browse the site as a different user.\n\nIt is implemented via a middleware that looks for a specific key in the user's\nsession -- the user to masquerade as. Also included are views and templates\nto allow the staff user to enter a username to masquerade and turn off\nmasquerading as well as a template tag that provides links to these views for\nstaff users.\n\nInstallation\n------------\n- ``pip install django-masquerade`` (or clone/fork)\n- Add ``\"masquerade\"`` to your ``INSTALLED_APPS`` setting\n- Include ``masquerade.urls`` from your project's root ``urls`` module\n- Optionally load and use the ``masquerade`` template tag library in your templates.\n- Add ``\"masquerade.middleware.MasqueradeMiddleware\"`` to your\n ``MIDDLEWARE`` setting. (``MIDDLEWARE_CLASSES`` for django pre-1.10) Note this must come after Session and\n Authentication middleware classes.\n\nNote that there is one template supplied by this app,\n``masquerade/mask_form.html``, which does not inherit from any other template.\nI recommend you simply copy this into your own template directory and edit as\nneeded to match your site's look and feel.\n\nRequirements\n------------\n``masquerade`` depends on django's SessionMiddleware and, obviously,\n``django.contrib.auth``.\n\nThe unit tests depend on the mock_ library.\n\nTemplate Tags\n-------------\nThe ``masquerade`` template tag library provides the following tags:\n\n- ``masquerade_link`` creates a link to either the \"Masquerade as user\" URL (if\n masquerading is not active) or the \"Turn off masquerading\" URL (if\n masquerading is active).\n\n- ``masquerade_status`` displays the name of the (other) user that the\n currently logged in user is masquerading as.\n\n**Note**: These template tags require that the ``request`` object be in the\ntemplate context, so use ``RequestContext`` to render the template and make\nsure the ``django.core.context_processors.request`` context processor is used.\n\nUser Attributes\n---------------\nTwo attributes are added to the ``request.user`` object by the masquerade middleware:\n\n- ``is_masked``. True if masquerading is in use and this user is not actually the original user.\n\n- ``original_user``. The non-masked user that initiated the masquerade. Set to None\nif no masquerading is happening.\n\nSettings\n--------\nThe following settings can be set in your project's settings file.\n\n- ``MASQUERADE_REDIRECT_URL`` (default: \"/\"). The URL to redirect the user to after\n masquerading is activated.\n- ``MASQUERADE_REQUIRE_SUPERUSER`` (default: False). If set to true, only users\n with both is_staff and is_superuser set to True will be allowed to use this\n feature.\n- ``MASQUERADE_REQUIRE_COMMON_GROUP`` (default: False). If set to true, only users\n with that have at least one common Group (django auth Group) with the masqueraded\n user will be allowed to masquerade as that user. If user is a superuser, this\n requirement is ignored.\n- ``MASQUERADE_USER_SEARCH_FIELDS`` (default: ``['username', 'email']``). The\n list of fields on the User object that will be searched in the masquerade\n form.\n\nAdditionally, masquerade respects the ``USERNAME_FIELD`` value of custom user classes\nimplementing ``AbstractBaseUser``, although you must manually add the name of your username\nfield to the ``MASQUERADE_USER_SEARCH_FIELDS`` setting as well.\n\nSignals\n-------\n``masquerade.signals`` defines two signals that can be attached to:\n\n- ``masquerade.signals.mask_on`` is sent when the user successfully masquerades\n as another user. It is sent one argument, ``mask_username``, the username of\n the user being masqueraded as. The ``sender`` argument is an instance of\n ``masquerade.forms.MaskForm``.\n- ``masquerade.signals.mask_off`` is sent when a masqueraded user visits the\n ``unmask`` view. It also receives a ``mask_username`` argument. The\n ``sender`` argument is an empty object.\n\nTesting\n------------\nmasquerade ships with a test runner. To run the unit tests, simply ``python run_tests.py``.\n\n.. _mock: http://www.voidspace.org.uk/python/mock/\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://bitbucket.org/technivore/django-masquerade", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "django-masquerade", "package_url": "https://pypi.org/project/django-masquerade/", "platform": "", "project_url": "https://pypi.org/project/django-masquerade/", "project_urls": { "Homepage": "https://bitbucket.org/technivore/django-masquerade" }, "release_url": "https://pypi.org/project/django-masquerade/1.3/", "requires_dist": null, "requires_python": "", "summary": "django-masquerade", "version": "1.3" }, "last_serial": 3494779, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "c76e2b8baf68b2d5a0ee8272ba894527", "sha256": "861fa3d9ee4c65395036852f8b71f2bae36dbe89d0b9c28257094169119182b4" }, "downloads": -1, "filename": "django-masquerade-0.1.tar.gz", "has_sig": false, "md5_digest": "c76e2b8baf68b2d5a0ee8272ba894527", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 526445, "upload_time": "2011-04-08T19:48:44", "url": "https://files.pythonhosted.org/packages/c4/39/6c92df51762ca53961a5229847fc358df73105d52419f1e7be38984281f0/django-masquerade-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "9de341a899548f2cc7f7f6d356e6fb78", "sha256": "3677c094b984fc19a80976384f6fc8f70931644d96ee65ff6ae6ed466d7f4e3b" }, "downloads": -1, "filename": "django-masquerade-0.1.1.tar.gz", "has_sig": false, "md5_digest": "9de341a899548f2cc7f7f6d356e6fb78", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 524338, "upload_time": "2011-04-08T20:18:40", "url": "https://files.pythonhosted.org/packages/12/6f/981e174c771c90d911feb21479fcbb243e86f5be1a026d7f074f09850878/django-masquerade-0.1.1.tar.gz" } ], "0.1.10": [ { "comment_text": "", "digests": { "md5": "fe2cd31c8b7a1ab1074a02b9a2bc8d0c", "sha256": "742a08f58b53bafa1560df994d95e269212870fd233f9ad22fc45e23315c355e" }, "downloads": -1, "filename": "django-masquerade-0.1.10.tar.gz", "has_sig": false, "md5_digest": "fe2cd31c8b7a1ab1074a02b9a2bc8d0c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 243993, "upload_time": "2015-07-02T15:34:06", "url": "https://files.pythonhosted.org/packages/e0/ed/20b1cf2bf42f90fa1e8c9eab0d15412cd0b310b8130e0d16f421fadf734e/django-masquerade-0.1.10.tar.gz" } ], "0.1.11": [ { "comment_text": "", "digests": { "md5": "2800d70f4f5a990e5f6201cdcf9e6792", "sha256": "1013a9973ea2ea6dc38c66b3c554aa1a89d51cf5c376b37363c09a616dea6385" }, "downloads": -1, "filename": "django-masquerade-0.1.11.tar.gz", "has_sig": false, "md5_digest": "2800d70f4f5a990e5f6201cdcf9e6792", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 244204, "upload_time": "2015-09-20T16:44:47", "url": "https://files.pythonhosted.org/packages/22/cf/97ae2d3fb9887ac9dfbf8b3ac49f5667e0cdacf9a6a5e97e7c639a050078/django-masquerade-0.1.11.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "667bb649f8fe58621ed0409900f4c2bf", "sha256": "492d6354008616c22671c06fcc27b905e2e1e23bb02c1df34c5c6ab7c2d2b63c" }, "downloads": -1, "filename": "django-masquerade-0.1.2.tar.gz", "has_sig": false, "md5_digest": "667bb649f8fe58621ed0409900f4c2bf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 524371, "upload_time": "2011-04-11T16:55:43", "url": "https://files.pythonhosted.org/packages/1f/00/9f86d484e79c42cf37b79c7ae8b4df963671f5fae35442eee70b54852799/django-masquerade-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "c14ac8360fe0be773410489b60d3575e", "sha256": "e53092e7a806f8472203855023f543835a3a7fb6259139e17053d6fb55eacc73" }, "downloads": -1, "filename": "django-masquerade-0.1.3.tar.gz", "has_sig": false, "md5_digest": "c14ac8360fe0be773410489b60d3575e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 525079, "upload_time": "2011-04-12T19:09:00", "url": "https://files.pythonhosted.org/packages/72/00/025d34e67131709e757555cbf4cacc34e4439c8aee1099b3405196db64b5/django-masquerade-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "4ebcfe554532a5d5ae13a05cf837ddc3", "sha256": "98899c3b48704a7847700591c0017696c5bfdb16a5fe4387e3ff1765883964bd" }, "downloads": -1, "filename": "django-masquerade-0.1.4.tar.gz", "has_sig": false, "md5_digest": "4ebcfe554532a5d5ae13a05cf837ddc3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 243532, "upload_time": "2011-04-22T21:47:25", "url": "https://files.pythonhosted.org/packages/6f/47/d5b614504ccd0f9326d3804b862dd00df50fc1a0a3deceff45b0b860e972/django-masquerade-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "b1686a0f2ab1d63246da9c392a2b6060", "sha256": "6c60f692c5fc1e9750f92788ccd86d648c3bae7cfaad0e419143aefb8847287d" }, "downloads": -1, "filename": "django-masquerade-0.1.5.tar.gz", "has_sig": false, "md5_digest": "b1686a0f2ab1d63246da9c392a2b6060", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 525148, "upload_time": "2011-04-25T22:17:54", "url": "https://files.pythonhosted.org/packages/73/20/fd8bab367de41e7910d0f3cf1224af57e21180ac297bb1c0018f89ae154b/django-masquerade-0.1.5.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "c0f43e2553e8a0fcde39f4ffecf5b1cd", "sha256": "88e61182e7136753917a5192b283ce2599c5ec74f764498b841b1a0663e7b119" }, "downloads": -1, "filename": "django-masquerade-0.1.6.tar.gz", "has_sig": false, "md5_digest": "c0f43e2553e8a0fcde39f4ffecf5b1cd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 527362, "upload_time": "2012-05-31T18:30:54", "url": "https://files.pythonhosted.org/packages/04/86/b384144058ea68fb64e5adfa9d8fe2dfdcef05f2c4fca9173312943f33ab/django-masquerade-0.1.6.tar.gz" } ], "0.1.7": [ { "comment_text": "", "digests": { "md5": "6d5835693b7b8b3a395ee24d3a0ed54d", "sha256": "6eb354b6e99339ee036517e8d87f80b0804ee48b071fdaf1ccf981dd173f48ee" }, "downloads": -1, "filename": "django-masquerade-0.1.7.tar.gz", "has_sig": false, "md5_digest": "6d5835693b7b8b3a395ee24d3a0ed54d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 527332, "upload_time": "2013-04-18T15:40:01", "url": "https://files.pythonhosted.org/packages/bb/07/55c1cf36827b89a1114f59fb04ffb23b6d5f0ad0c2be95ad8b031a0b4578/django-masquerade-0.1.7.tar.gz" } ], "0.1.8": [ { "comment_text": "", "digests": { "md5": "71c7d6c01d5828b371a58d62087c13f7", "sha256": "64d02862958b837abd2721ee6f1c16beeb3411fe357cdc691c7a007bb628a723" }, "downloads": -1, "filename": "django-masquerade-0.1.8.tar.gz", "has_sig": false, "md5_digest": "71c7d6c01d5828b371a58d62087c13f7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 243219, "upload_time": "2013-11-14T16:35:07", "url": "https://files.pythonhosted.org/packages/e3/39/1b00e7454b620a9c3ed869c1309a09d42d94b2a281c86316467d4b55201d/django-masquerade-0.1.8.tar.gz" } ], "0.1.9": [ { "comment_text": "", "digests": { "md5": "2ff5f3223ec1b65c380f0553816c4eb7", "sha256": "7bfa5b3f76e93f8d272ef1fbe7a4437e667a0d066782cf6656de93fd9f483b72" }, "downloads": -1, "filename": "django-masquerade-0.1.9.tar.gz", "has_sig": false, "md5_digest": "2ff5f3223ec1b65c380f0553816c4eb7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 243473, "upload_time": "2014-11-04T17:50:40", "url": "https://files.pythonhosted.org/packages/b5/9d/3ce364729b62295d739f6175151b58e8f5e54f218732043584fb954e3c57/django-masquerade-0.1.9.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "295a51b56f5e633f848404b2fd09fd4f", "sha256": "de147f96fda32633656caca40b2187f946983f0747f2948e6a8e5196103229ea" }, "downloads": -1, "filename": "django-masquerade-0.2.tar.gz", "has_sig": false, "md5_digest": "295a51b56f5e633f848404b2fd09fd4f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 244185, "upload_time": "2015-10-21T19:01:49", "url": "https://files.pythonhosted.org/packages/90/a0/930391b9663de12780439a13e126d36a51b662cf968a71cb3efa0b5f5a5b/django-masquerade-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "c306bccc9d5ea81f54e833e16cdd75ad", "sha256": "97f237f0a1362a9bda62fb4c3cffcd930bacfeabf855a462d7efeffcbbebcd09" }, "downloads": -1, "filename": "django-masquerade-0.2.1.tar.gz", "has_sig": false, "md5_digest": "c306bccc9d5ea81f54e833e16cdd75ad", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 243953, "upload_time": "2016-02-08T17:32:03", "url": "https://files.pythonhosted.org/packages/9a/c8/1983c32ed5b2beb941f43994dec916adf198eca74d656d28d2de9b18a902/django-masquerade-0.2.1.tar.gz" } ], "1.0": [ { "comment_text": "", "digests": { "md5": "7b545e8d6d1e3f2399b527548ca3534d", "sha256": "c60a14d0bada2ad03521b2137dde95e2ae44b2de48200f7d2c36ad1106d066c1" }, "downloads": -1, "filename": "django-masquerade-1.0.tar.gz", "has_sig": false, "md5_digest": "7b545e8d6d1e3f2399b527548ca3534d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 244139, "upload_time": "2016-02-12T15:56:29", "url": "https://files.pythonhosted.org/packages/92/32/a0586be29e23bcd3aa02b76e75219d9fadfd304e8056df308cf4c55062c0/django-masquerade-1.0.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "70274a23569493397807762137bbe9f0", "sha256": "621e0581019f909008c4f03b0cc656aab0040fd68a13515dd8ff6917808110ab" }, "downloads": -1, "filename": "django-masquerade-1.1.tar.gz", "has_sig": false, "md5_digest": "70274a23569493397807762137bbe9f0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 244627, "upload_time": "2016-12-01T22:01:05", "url": "https://files.pythonhosted.org/packages/c2/00/542fc3f079ccfa08bc19404f1420ad24a39c33172ff6698b11c88e9d23c3/django-masquerade-1.1.tar.gz" } ], "1.2": [ { "comment_text": "", "digests": { "md5": "d6965964195c36c7b834a4c3c2d7e24e", "sha256": "6c8356bea55458ac49bd3ca434c2489e836f3c679813da85644e24aed3a0d433" }, "downloads": -1, "filename": "django-masquerade-1.2.tar.gz", "has_sig": false, "md5_digest": "d6965964195c36c7b834a4c3c2d7e24e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 244634, "upload_time": "2016-12-09T16:20:55", "url": "https://files.pythonhosted.org/packages/00/01/0c6cf45c54c9c80a4854d3e24967da893014cd41fa38af8eeb58a2a992e6/django-masquerade-1.2.tar.gz" } ], "1.3": [ { "comment_text": "", "digests": { "md5": "de6e7f47d211a2e412233a28f3bdeb96", "sha256": "e7636706ee1c23aae09e0166b30d4d9ad73ed334961fe354f5d5f15632f7a65a" }, "downloads": -1, "filename": "django-masquerade-1.3.tar.gz", "has_sig": false, "md5_digest": "de6e7f47d211a2e412233a28f3bdeb96", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 244655, "upload_time": "2018-01-16T17:02:07", "url": "https://files.pythonhosted.org/packages/5c/2a/95e3cfc3ee5b7ea08e77f3b47e90893a323af4cdd657b348d20286c97630/django-masquerade-1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "de6e7f47d211a2e412233a28f3bdeb96", "sha256": "e7636706ee1c23aae09e0166b30d4d9ad73ed334961fe354f5d5f15632f7a65a" }, "downloads": -1, "filename": "django-masquerade-1.3.tar.gz", "has_sig": false, "md5_digest": "de6e7f47d211a2e412233a28f3bdeb96", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 244655, "upload_time": "2018-01-16T17:02:07", "url": "https://files.pythonhosted.org/packages/5c/2a/95e3cfc3ee5b7ea08e77f3b47e90893a323af4cdd657b348d20286c97630/django-masquerade-1.3.tar.gz" } ] }