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.
mλdcodez
mλdcodez
mλdcodez
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
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
Jimmies San
Jimmies San
https://docs.djangoproject.com/en/dev/ref/models/querysets/#order-by
Jimmies San
check this :)
python
Abhi
Jimmies San
on bottom, "customizing field labels", and after
python
inchidi
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
python
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]
Jimmies San
inchidi
thats pretty easy coz you just need html and css. but find the correct tags to extend pretty hard
python
python
python
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 ...
inchidi
inchidi
Jimmies San
Jimmies San
take a look maybe help ...
python
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
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
python
Anonymous
Rohan
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
Anonymous