Skip to content

An extremely simple way to disable Django's behavior of updating a user last_login field on login.

License

Notifications You must be signed in to change notification settings

MSA-Argentina/django-no-last-login

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-no-last-login

This is an 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.

A full blown alternative is https://github.com/streeter/django-db-readonly/

Quick start

  1. Add "nolastlogin" to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [
    ...
    'nolastlogin',
]
  1. Add this to the settings:
NO_UPDATE_LAST_LOGIN = True

About

An extremely simple way to disable Django's behavior of updating a user last_login field on login.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages