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.1.tar.gz (10.7 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.1-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_session_switcher-0.2.1.tar.gz
  • Upload date:
  • Size: 10.7 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.1.tar.gz
Algorithm Hash digest
SHA256 48a48cf2c714011150dffbb33aefa9f4e911fe4f50b66910c1c49142bc2717bb
MD5 33776986c51e68c652cc9d0e78f9a3c1
BLAKE2b-256 f734cc1126892b9e7b462c12fdfbdf20b76165424a171c1dab18b2ce973e1306

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_session_switcher-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f71d15e499732d19a6953a358c52fc786e95d27fc172f83931126843202ef227
MD5 51a5024211da3d2e721e4fd7dfd439e6
BLAKE2b-256 127ce1f5e3f3221821750be3983c63f1c637eea5a3399a6279758c497460eb96

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