Anonymous
Rammy
Mirco
Leonardo
How can I change the name of my class for the admin view?
Example, I declaired a class named Certificate(model.Models), how can I change Certificate name to Certificado in my admin view?
Ghorz
Leonardo
But this is a manual change, its not a translation
Leonardo
https://docs.djangoproject.com/en/2.1/ref/migration-operations/#renamemodel
Leonardo
I found this but idk how to work with it
Taha
if I wanna learn Django from scratch to be hero, what should I do and what's the best plan to learn ?
cj
Dcruz
Anders (izzno / gooood) 🇳🇴
If you have "some" basic knowledge of any programming you will be able to follow this.
Taha
Taha
Taha
Mohamed
Leonardo
I'm trying upload 3 pdf files, (1,15mb each), and when I save it's giving 413 Request Entity Too Large
cj
Leonardo
I tried set 100M to client_max_body_size just for test it, but still not working at all
Raghava
Hi I am facing an isuue, this is in a function in my js file and it i'm running again and again:
var recipients_dom = '<div id="private-container">'+templates.render('sidebar_private_message_list',
{messages: display_messages,
zoom_class: zoom_class,
want_show_more_messages_links: hiding_messages})+'</div>';
The result is that the div tag is repeating and the template is just staying in the last tag, How can i make it stay in the first tag???
Mirco
Leonardo
Leonardo
Leonardo
I tried set client_max_body_size 0M; to remove the limit, but not worked
Jimmies San
Leonardo
I saw my request size too, it's just 784B
Jimmies San
where you have http { blabla
Leonardo
Leonardo
my nginx conf: https://pastebin.com/EETR7Ck0
Jimmies San
Jimmies San
is 0M man
Leonardo
0 removes the limit
Leonardo
i tried 10000M too
Jimmies San
no limit is not good
Leonardo
i just removed the limit for test
Leonardo
i got this problem before, i set 30M, and worked
Leonardo
but i changed the class, and i'm uploading 3x files instead 1x now
Leonardo
but all of them are around 1,15mb
Leonardo
this is the page
Leonardo
just 3x pdfs
Mirco
Why ? 😁
Maz
Inboxed you...
Anonymous
How can i populate database with jason file
Anonymous
Any suggestion please?
Anonymous
I have records in Jason file so i just want to populate record in database
cj
or... if you're lucky enough, using django import-export package
Anonymous
Anonymous
cj
cj
Anonymous
Anonymous
Thanks
Leonardo
can someone briefly explain what exactly 'include' function does?
Rammy
Leonardo
😒
Ghorz
cj
😒
you got a valid answer 🤷🏻♂️
Ghorz
Ghorz
E.g
Ghorz
You can write an HTML form that can be reused for different form data, include can be used to import the form when ever you need to
cj
cj
cj
Ghorz
Okay which ever way you understand the vocabulary
Ghorz
Ghorz
They both add an external function, subroutine, class or file
Ghorz
In pure python file import adds x in y,
In DTL include adds x to y