Anonymous
I need to build an authentication system that's keeps track of user login and logout timestamps, it records the time stamp for a day and store it in field, and if that day pass by it created another record for that user timestamp, meaning it has a full log of user login or logout for days in a week and weeks in a month and months in a year, this is going to consume a lot of database space but I just need help on how to implement this or maybe there's a django package that can do this for me, I have searched but I can't find a reasonable answer.
Jimmies San
hi all! any magic 3rd party app to help with gdpr implementation?
Jimmies San
i looked around but only abandoned components 😐
Django Bot
>> Links - 7 Vue.js Backends Compared - Creating websites using React and Django REST Framework
Django Bot
>> Jobs - Secops - Lead Developer >> Links - Building Modern Applications with Django and Vue.js
Luis
what's secops?
Django Bot
>> Links - Django F Expressions & Model-Less Serialization – Jason Johns – Medium
Abhi
hey everyone...
Abhi
I have an issue
Abhi
every time i update a model instance
Abhi
its order gets changed in rendering the template
Abhi
example: if there is an upvote button for post 1 on the feed page on pressing it, the post is dragged to the bottom
Abhi
and the next post appears on the top in my html page
Jimmies San
what's secops?
security/operations - a sysadmin with high security trends and skills
Daniel
so much marketing in these position names
Luis
yes
Django Bot
>> Links - Jahongir Rahmonov: Django Static Files
python
I want to customize admin site,so display lable(verbose_name) on top of every field (like a table). by default lables are left of field. anybody can help me?
Jimmies San
instead of register the model in the simple way, you can create an ad hoc class, register it, and customize
Jimmies San
something like @admin.register(ContactPerson) class ContactPersonAdmin(admin.ModelAdmin): """admin contactperson object""" list_display = ('fullname', 'email') search_fields = ['fullname']
Jimmies San
if you need particular label [and translated] you can use gettext on model, and put a label on it
python
Thank you. I will try it.
inchidi
Abhi
.order_by() your queryset then
Thanks. But how to get the reversed order
Jimmies San
https://docs.djangoproject.com/en/dev/ref/models/querysets/#order-by
Jimmies San
check this :)
Jimmies San
I think it is default of django admin and does not change in display tables.
mmmh maybe i don't understand what you need.... try to look here i think this can help you https://djangobook.com/adding-models-to-django-admin/
Jimmies San
on bottom, "customizing field labels", and after
inchidi
I want to customize admin site,so display lable(verbose_name) on top of every field (like a table). by default lables are left of field. anybody can help me?
did you mean you want to change the input form (when create or update) from inline form to "not inline form"?
python
did you mean you want to change the input form (when create or update) from inline form to "not inline form"?
I want to have multiple fields in same line and lables be top of fields.with field_set tuple I made multiple fields in same line but I can not put labels on top of fields.by default labels place left of fields.
python
yes.
python
I want to show fields like this.
inchidi
yes.
oh like that, really? have you work with/create django template pages before? coz its gonna be hard if you dont have knowledge about django templating engine tho
Jimmies San
are you on superadmin zone?? never do smtng like that
Jimmies San
seems cool
inchidi
Jimmies San
yes but i never customized the admin, and i'm not a frontender :( so something it's tricky for me [i hate frontend/design, i'm not fullstack, i do the minimal front needed]
inchidi
are you on superadmin zone?? never do smtng like that
actually am always avoiding to edit admin pages coz it need "expert level" understanding of django template imo lol
inchidi
I'm new in django.but I can learn it🙂
what you need to do is extending the tags used to render the forms
inchidi
thats pretty easy coz you just need html and css. but find the correct tags to extend pretty hard
Jimmies San
@Inchidi but in this case... maybe grappelli can help ? i just asking ... i mean: when you need to heavy customize the admin zone ...
Jimmies San
never use it, maybe you can give it a shot @hyper_design_telegram
https://github.com/sehmaschine/django-grappelli
Jimmies San
take a look maybe help ...
python
do you know a resource contain examples about it?
inchidi
old post but hope this helps
Anonymous
How to hack wifi using django?
Jimmies San
How to hack wifi using django?
😂😂😂😂😂😂😂😂
Jimmies San
How to hack wifi using django?
how to cook a pizza with django?
Anonymous
Am serious
Jimmies San
😂😂😂😂 me too
Jimmies San
i need a pizza. and i have just django tools.
Anonymous
I can hack wifi using python3
Anonymous
But idk about django
Anonymous
Rohan
But idk about django
😂😂😂😂😂
Charly
LOL
Anonymous
Please take it seriously
Anonymous
If u wont get hacked by me
Rohan
Offtopic
Rohan
Feel free to hack my wifi
Charly
Please take it seriously
if you don know how to search in google what the fuck is django nobody is going to take you seriously
Rohan
Unlimited FUP, can't care less