Skip to main content

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


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

django_no_last_login-0.1.0-py2-none-any.whl (3.7 kB view hashes)

Uploaded Python 2

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page