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
- Install the package
pip install django-session-switcher
- Add
django_session_switcherto yourINSTALLED_APPSsettings.
INSTALLED_APPS = [
...,
"django_session_switcher",
]
- Add the middleware to your project
MIDDLEWARE = [
...,
"django_session_switcher.middleware.SessionSwitcherMiddleware",
]
- Include the django_session_switchers URLconf in your project urls.py like this
path("__dss__/", include("django_session_switcher.urls")),
-
Run
python manage.py migrateto create the models. -
You need to add the dummy users to the django_session_switcher's
Session Usermodel. You can do this through django admin. -
Once you have added some users to
Session Useryou 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
48a48cf2c714011150dffbb33aefa9f4e911fe4f50b66910c1c49142bc2717bb
|
|
| MD5 |
33776986c51e68c652cc9d0e78f9a3c1
|
|
| BLAKE2b-256 |
f734cc1126892b9e7b462c12fdfbdf20b76165424a171c1dab18b2ce973e1306
|
File details
Details for the file django_session_switcher-0.2.1-py3-none-any.whl.
File metadata
- Download URL: django_session_switcher-0.2.1-py3-none-any.whl
- Upload date:
- Size: 12.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f71d15e499732d19a6953a358c52fc786e95d27fc172f83931126843202ef227
|
|
| MD5 |
51a5024211da3d2e721e4fd7dfd439e6
|
|
| BLAKE2b-256 |
127ce1f5e3f3221821750be3983c63f1c637eea5a3399a6279758c497460eb96
|