Hi Andreas,
Thanks for your response. I want to clarify below points --
Above mentioned suggested code should be written in which file ?
How Logging output can be published on admin console ?
Thanks again --
On Tue, Jul 23, 2019 at 12:39 AM Andreas Schosser wrote:
> Hi
>
> you can the use Logger
Hi
you can the use Logger class documented in
"https://docs.djangoproject.com/en/2.2/topics/logging/";.
Basically the code is something like
import logging
log = logging.getLogger('delhisanjays_app')
log.info.('user logged in')
You can enhance the log message to your needs.
Cheers
Am 22
Hello Django Experts,
There is Django application which uses LDAP in middleware for user
authentication.
I need to record user login and logout time. For that purpose, I think of a
basic flow as per following details -
Create new model for logging
Make a function in views.py which will add the logi
3 matches
Mail list logo