LinuxBugs
can anyone help?
food = 'bread'
vars()[food] = 123
print bread # --> 123
noob
noob
Oky i will google wait
noob
M
noob
M
So it will work .. u said u getting name of object which is different that getting object itself
Hamidreza
LinuxBugs
More the open connections, more the load on DB.
It all depends on your use case.
LinuxBugs
On the contrary, if you're not having a loaded website, then there is some problem in your Django ORM , it's not closing the connections. Try to update your Django version and check.
LinuxBugs
LinuxBugs
The perfect ideal way is to calculate the most possible number of dB connections you'd need by rate limiting your users and use thst configuration in your DB.
In production you must be having multiple DB nodes, in sync, if you're dealing with good amount of queries
bikrant
Is it ok to use tokens in shared preference?
bikrant
Or is there any other way?
LinuxBugs
bikrant
LinuxBugs
Can u explain
Look at JSON Web Tokens on YouTube/Google
bikrant
I'm using django token authentication and using api to get data in flutter application .
LinuxBugs
bikrant
Mirco
Oauth works in complement to django token?
It's different and you need to build also the provider etc etc otherwise you should use something external but it depends on the price etc etc
So it depends on what u r building
bikrant
Mirco
Doragonsureiyā
Dev
How to retrieve data from api using django please give me some example of codes ?
noob
model1 = apps.get_model('PJ', context ['system'])
print("hi" +model1)
noob
this is not pritining anything
M!L∆D
Hey guys! I have this project, it's a school management system. I want build page that teacher comes and selects his/her class (and also can only his/her classes not other teachers') and writes the message and clicks on the button and it opens up a "bootstrap modal". In there, he/she chooses whichever students he/she wants and clicks on the button sends them the message. Now I can't get students to show to the teacher. Can you help me? Here's my models, veiws and template.
M!L∆D
I can't send any images
M!L∆D
The group is restricted 😑😑
M!L∆D
What should I do?
M!L∆D
Send my codes?
M!L∆D
cj
M!L∆D
McLean
@require_login
How do i use this function ,help??
mukul
mukul
cj
Yuvi
How to fetch image
McLean
Anonymous
Please do anyone know how I can restrict staff from accessing superuser details even if they have the permission to add and change users in the admin site
Slava
You can manage user roles in admin panel quite easy.
Akinsola
I know this is a long shot, but, does anyone know how to integrate Django rest framework with angular universal to perform server side rendering, the tutorials I see are for node alone so I don't know how to even start with django
Akinsola
David
Friends have done an SSO with django? It is advisable?
goku
how can I fetch list of names from database in alphabetical order?
LinuxBugs
Hjk
Dpes temporaryuploadedfile work properly for ffmpeg ???
Hjk
Ffmpeg .gif error
noob
model1 = apps.get_model('PJ', context ['system'])
print(model1)
noob
Its not printing anything
Shubham
Shubham
noob
Finyah
Viswa
UnboundLocalError at /
local variable 'stud' referenced before assignment
Viswa
UnboundLocalError ,,, what can i do for this error
Harsh
you must have use 'stud' variable before declare it
Viswa
yeah i use that
noob
This is working:
<img src='/Media/{{i.Netflix_image}}' class="card-img" alt="...">
I wanna do this :
<img src='/Media/{{i.{{name}}_image}}' class="card-img" alt="...">
noob
Harsh
noob
So i wanna do is{ i.name}
LinuxBugs
@noob_007 pose your questions correctly. Use code sharing tools to share your code.
I tried to help you in your previous issue, it took me a lot of time to understand what you're trying to do.
If you want solutions, first search Google, then ask with code sharing tools.
noob