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.3.tar.gz (10.5 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.3-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_session_switcher-0.2.3.tar.gz
  • Upload date:
  • Size: 10.5 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.3.tar.gz
Algorithm Hash digest
SHA256 a4171e16e65ac8a416e1e5826c78cb79947adc38a79c279d6bce00349a3c3d34
MD5 5ccffaafd0b76944b7d3109b36d1359a
BLAKE2b-256 3168dc4737daf06deb4076738adf31f46e751577347605dd9d58a131b6e30b53

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_session_switcher-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 84006f24f25df1442e7965b3d2a5958db62b3e488e4f49723ed29b1684c4f655
MD5 cb9f48cd0e4d7d3821cf379bd9fc8710
BLAKE2b-256 ddb88d76719d808f51ff1e7889196c43abbb1293661d91eacf32651ce5d5af29

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