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.
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)
| File | Size | Uploaded | |
|---|---|---|---|
| django_session_switcher-0.2.3.tar.gz | 10.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|