Disable the update of last_login field on user login
Project description
=====
django-no-last-login
=====
This is a extremely simple way to disable Django's behavior of updating a user last_login field on login.
You could use this to connect a Django app to a read-only database, such as a replica, and still having a more or less functional application.
Quick start
-----------
1. Add "nolastlogin" to your INSTALLED_APPS setting like this:
::
INSTALLED_APPS = [
...
'nolastlogin',
]
2. Add this to the settings:
::
NO_UPDATE_LAST_LOGIN = True
django-no-last-login
=====
This is a extremely simple way to disable Django's behavior of updating a user last_login field on login.
You could use this to connect a Django app to a read-only database, such as a replica, and still having a more or less functional application.
Quick start
-----------
1. Add "nolastlogin" to your INSTALLED_APPS setting like this:
::
INSTALLED_APPS = [
...
'nolastlogin',
]
2. Add this to the settings:
::
NO_UPDATE_LAST_LOGIN = True
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file django-no-last-login-0.1.0.tar.gz
.
File metadata
- Download URL: django-no-last-login-0.1.0.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
53258e6c053f231cc3065cfad0c5c7b265b8e3d4fce35b2fd31e915470779e5c
|
|
MD5 |
95b3bc629559e590be046f880955cd02
|
|
BLAKE2b-256 |
330748a4366cda27d1d16e938ff14a2b3d54828ddb0cc213b05dbe95b623e970
|
File details
Details for the file django_no_last_login-0.1.0-py2-none-any.whl
.
File metadata
- Download URL: django_no_last_login-0.1.0-py2-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
10869c2ca06f2de973a5852f129ea8024ef8aafe2ea09b3e46f88c253c04fd2d
|
|
MD5 |
1346ce51b01adf23073f3d47f6292471
|
|
BLAKE2b-256 |
e00c83a9151184f845bb9679398723776b3e0425bc41b3d41b9c7b5a089941d8
|