Skip to main content

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.

Release files for django-session-switcher 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-session-switcher 0.2.3
File Size Uploaded
django_session_switcher-0.2.3.tar.gz 10.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-session-switcher 0.2.3
File Interpreter ABI Platform
django_session_switcher-0.2.3-py3-none-any.whl Python 3 none any Details

Total release size: 22.4 kB

Release files / django_session_switcher-0.2.3.tar.gz

Download URL django_session_switcher-0.2.3.tar.gz
Size 10.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a4171e16e65ac8a416e1e5826c78cb79947adc38a79c279d6bce00349a3c3d34
BLAKE2b-256 checksum
How to use checksums
3168dc4737daf06deb4076738adf31f46e751577347605dd9d58a131b6e30b53
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.15

Release files / django_session_switcher-0.2.3-py3-none-any.whl

Download URL django_session_switcher-0.2.3-py3-none-any.whl
Size 12.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
84006f24f25df1442e7965b3d2a5958db62b3e488e4f49723ed29b1684c4f655
BLAKE2b-256 checksum
How to use checksums
ddb88d76719d808f51ff1e7889196c43abbb1293661d91eacf32651ce5d5af29
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.15

Release history Release notifications | RSS feed

This release

0.2.3 This release

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page