️
In .update(field=data) can I somehow change field to field + n?
Charly
In .update(field=data) can I somehow change field to field + n?
Do you have numbered fields? you can build a dictionary and then pass it as **kwargs
M
https://www.b-list.org/weblog/2022/aug/16/async/
yusof
hey logo_project = Setting.objects.get(key='LOGO_PROJECT_ICON').get_value() project_name = Setting.objects.get(key='PROJECT_NAME').get_value() html_head = Setting.objects.get(key='PROJECT_HTML_HEAD').get_value() this code cost me 3 queryset is there any way that i get this information in one query just? thanks
Forrest
I have to make a project with : -Data Management (CRUD of workers) -Contracting (recruitment form, contract) -Invoicing (invoices, collection of each worker) -Collections and Payments (checks, transfers, demands) -Reports(get dates and lists) Ask: How many Applications can the project have and how can they be divided?
M
what is it ?
Understanding async Python for the web
Maxim
Valera 🇺🇦🤝🇺🇿
Maxim
Yes, thanks
when ? where ?
Nareth
I have problem with Django API  response not return a list,
Maxim
Yes, thanks
are you M ?
Doragonsureiyā
I have problem with Django API  response not return a list,
To get an answer to your question, it is worth to formulate it more clearly, perhaps add more details, perhaps add explanations.
Nareth
To get an answer to your question, it is worth to formulate it more clearly, perhaps add more details, perhaps add explanations.
class Orglist(APIView): def get(self, request): user = self.request.user emprofile = EmployeeProfile.objects.filter(user=user).first() empList = EmployeeList.objects.filter(employee_profile=emprofile) for i in empList: id = int(i.org.id) org = Organiaztion.objects.filter(id=id) serializer = OrganiaztionSerilaizers(org, many=True) print(serializer.data) return Response(serializer.data)
Nareth
my code respone only one result
Nareth
Id is unique, so it will return just one item
I using for in to loop object But return not a list
Nareth
find out how return works
return get only self. How to get other id without self?
Maxim
return get only self. How to get other id without self?
find out how return works and look at you code
Valera 🇺🇦🤝🇺🇿
when ? where ?
Yesterday I sent my question to Universe
Maxim
Yesterday I sent my question to Universe
pick another conversation where you could apply your sense of humor don't forget to send useful information along with the joke
Nareth
find out how return works and look at you code
I'm filter object self to check current user, and return list , but got return self 🥲 , not related to other object
Maxim
I'm filter object self to check current user, and return list , but got return self 🥲 , not related to other object
your words don't match the code you're talking about or you didn't share that code
Nav
so many good guides on youtube
Yeah but am not getting understand Please can provide me easy syntax or steps then I get help
UnoNumero04
I understand
Adeliya
Hi , pls help me , I have an “Authentication credentials not provided” error on Thunder Client
Adeliya
When I test the endpoint Change Password
Zikirillo
#helpe #please #django #for Hello everyone! I have this problem. When I send one request, django keeps the client name all the same i used for in my code I have a different name for each client, but django keeps them all the same please help if anyone understands
Vito
Hi guys I have a massive problem with media url and media root to setting up correctly.. with ngix and gunicorn
Doragonsureiyā
Hi guys I have a massive problem with media url and media root to setting up correctly.. with ngix and gunicorn
To get an answer to your question, it is worth to formulate it more clearly, perhaps add more details, perhaps add explanations.
Vito
Did you have some tutorials that explain good this how to doit
jaxx
How to request.user un django rest
Ali
How to request.user un django rest
Just like django But if the user is not registered return None
jaxx
Just like django But if the user is not registered return None
User is registered but still it returns none
Sayidbek
Hey guys, I need help, when I runserver my project locally, it works fine, but when I deploy it on heroku, it is saying 'ProgrammingError at / relation "blog_post" does not exist', Please HELP Check it out: https://myblogs2022.herokuapp.com/
عبد القيوم
Are you passing posts to the template
Sayidbek
Just apply migrations
didn't help
Артем
didn't help
Do you have python manage.py migrate in Procfile?
Shivam
Please install cors headers
Sayidbek
Артем
Check deploy logs by the way, error also could happen during applying migrations
Ali
User is registered but still it returns none
How did you create the authentication system?
jaxx
Using simple jwt
Shivam
how does it help?
Which db have you used??
Alireza
Using simple jwt
what is jwt
Maxim
what is jwt
use search engines
Shivam
what is jwt
Json web token
Alireza
McLean
Guys how do i validate a checkbox event from a my own custom template
Sayidbek
Run ??
Yes, it's working now
Sayidbek
Just apply migrations
Thanks very much, migration did the trick.
Hamza
Hello
Hamza
How can export excel file from filter data in my table
Hamza
I need best way to do it
Noora
Sorry with python and django we can be web developer?
Noora
Yes you can
So can i learn java in front of jango ?is it ok or i should learn jango then learn java
Noora
Yes you can
What a different between software and web developer
∆$¶u
What a different between software and web developer
Software means set of instructions given to a computer to perform certain task. developer is nothing but the one who assign the tasks to the computer.
Tushar
How to handle multiple user access website simultaneously (conflict)
Doragonsureiyā
What a different between software and web developer
Your question is not related to Django. If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
Charly
How to handle multiple user access website simultaneously (conflict)
Explain your issue in a detailed way or no one will be able to help you
Avneet
I have a table with fields Stage(foreignkey) User(foreignkey) Level(foreignkey) I have to create a rest api to show data in groups on basis of stage for ex- Stage(user, level user, level user, level)
Avneet
Please help
Avneet
Anyone?
Tushar
Explain your issue in a detailed way or no one will be able to help you
Sure. Multiple users click the button of django web app at the same time
Tushar
will there will be any conflicts(like two users got the same sample data set?). I have researched about it but could not get the clear answer, however i believe that Django application creates the individual sessions for the request and it wont overlap the requests