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. Install the package
pip install django-session-switcher
  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.2.tar.gz (10.6 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.2-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for django_session_switcher-0.2.2.tar.gz
Algorithm Hash digest
SHA256 96160d2c156a45316e6636e467c2487dfe49c367e41fedcec2657f34154ed4ec
MD5 3b285ec4a585edc1f9ef27e18f45619d
BLAKE2b-256 c5ede336760e3dd655ea22cc29fece6b7f918e942c623274f72f918202a51300

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_session_switcher-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 752bf22e78b28004fc6ab34730670b0ea53a215673fc3b3cf19844e81dc753fd
MD5 b04baf25dd272be56397ca1925765a17
BLAKE2b-256 df54420aecf82648711ee64d5b6f1b946fcd2a6d4f8a02f554ea3e96dd22263c

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