Database audit fields in Django

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Database audit fields in Django

Sujata Aghor
I am looking to create a database audit fields such as 'created by' , ' modified by', 'created on time', ' modified on time' and Archive table where i can see the changes over the time about perticular row.

this was possible in web2py automatically. Does anyone knows any such thing exist in Django?
Any idea will be a gr8 help.
Thanks

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/05b8bddb-d2b3-4c97-a2ef-f02ad4311e3c%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Database audit fields in Django

Gabriel Araya Garcia
You can see it in ADMIN tables of Django 

Gabriel Araya Garcia
GMI - Desarrollo de Sistemas Informáticos
99.7721.15.70



El vie., 22 may. 2020 a las 17:39, Sujata Aghor (<[hidden email]>) escribió:
I am looking to create a database audit fields such as 'created by' , ' modified by', 'created on time', ' modified on time' and Archive table where i can see the changes over the time about perticular row.

this was possible in web2py automatically. Does anyone knows any such thing exist in Django?
Any idea will be a gr8 help.
Thanks

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/05b8bddb-d2b3-4c97-a2ef-f02ad4311e3c%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAKVvSDAsduA57vxhcm2gFUs_EwFmq5e%3DMJzuMwY0GEjPnvv2nA%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: Database audit fields in Django

Sebastian Jung
In reply to this post by Sujata Aghor
Hello,

You must create it over models.py. please Take a Look Here https://stackoverflow.com/questions/2771676/django-datetime-issues-default-datetime-now

Another field Like Lastchangefromuser you must created it AS onetoone field in models.py and in Views you can Insert requests.user to fill current User...

When you have further questions please wrote me

Regards

Sujata Aghor <[hidden email]> schrieb am Fr., 22. Mai 2020, 23:39:
I am looking to create a database audit fields such as 'created by' , ' modified by', 'created on time', ' modified on time' and Archive table where i can see the changes over the time about perticular row.

this was possible in web2py automatically. Does anyone knows any such thing exist in Django?
Any idea will be a gr8 help.
Thanks

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/05b8bddb-d2b3-4c97-a2ef-f02ad4311e3c%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAKGT9mz3sL7mpg1DRwX_2Fs2R1y8nM79KMg%2BsWTdqDJjUhACCQ%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: Database audit fields in Django

gamesbook
In reply to this post by Sujata Aghor
There are many things available "by default" in other frameworks; but Django has chose to keep the core focused on doing key things well (I won't say "simple").  For everything else, the plugin/app approach can be used to support your project's specific needs.

So "auditing" is actually a complex issue and no one person or organisation will define this the same way.  However, there are some good apps out there that might support at least some of what you need; for example:



I'd look at those before considering writing any code yourself.
 

On Friday, 22 May 2020 23:40:02 UTC+2, Sujata Aghor wrote:
I am looking to create a database audit fields such as 'created by' , ' modified by', 'created on time', ' modified on time' and Archive table where i can see the changes over the time about perticular row.

this was possible in web2py automatically. Does anyone knows any such thing exist in Django?
Any idea will be a gr8 help.
Thanks

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/54620e24-43d5-4609-9198-92db29ee53a4%40googlegroups.com.