Skip to main content

A Django app to quickly switch between django users.

Project description

django-session-switcher

django-session-switcher allows you to quickly switch between dummy users. Handy tool to create dummy content for your side projects from multiple users.

Usage

  1. Add django_session_switcher to your INSTALLED_APPS settings.
INSTALLED_APPS = [
    ...,
    "django_session_switcher",
]
  1. Add the middleware to your project
MIDDLEWARE = [
    ...,
    "django_session_switcher.middleware.SessionSwitcherMiddleware",
]
  1. Include the django_session_switchers URLconf in your project urls.py like this
path("__dss__/", include("django_session_switcher.urls")),
  1. Run python manage.py migrate to create the models.

  2. You need to add the dummy users to the django_session_switcher's Session User model. You can do this through django admin.

  3. Once you have added some users to Session User you will be able to switch between added users with a single click.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_session_switcher-0.2.0.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_session_switcher-0.2.0-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file django_session_switcher-0.2.0.tar.gz.

File metadata

  • Download URL: django_session_switcher-0.2.0.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.4

File hashes

Hashes for django_session_switcher-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8e4edb65ec37205a15c3c3a6c8052100ca9c9cf9b0714b654c7c3261f768b211
MD5 fa691f13e2c97ab93703b0fe160959c4
BLAKE2b-256 94f6d48628296618ddcbabc688fcbf85e5ba021ad5528e2d7b6ca62fe6da4888

See more details on using hashes here.

File details

Details for the file django_session_switcher-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_session_switcher-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9b5bbfa3f1e3492c2c0d569301f55c6bd987b02df2a114e453188b68f9de3138
MD5 f469544147fd63fbaeafcad1d9eb8736
BLAKE2b-256 d40d070a0a05f0f93dfda79fbfc5651ceca724f9075e44726fb75e466a3b5318

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page