Skip to main content

Disable the update of last_login field on user login

Project description


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:



2. Add this to the settings:



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-no-last-login-0.1.0.tar.gz (2.6 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page