benshi
it doesnt really crash
benshi
i just want it pick up where it left off if the server stops
Anonymous
Ok so write it to a db or file .. the current context or the details
benshi
benshi
Thanks Guyss
Anonymous
Have a table created to store current context or values or something
Ulug'bek | Python Developer
Guys I have problem with django
Ulug'bek | Python Developer
I want creat app in heroku but it was wrong. Who know is it
Ulug'bek | Python Developer
k
is anyone familiar with celery ?
the latest version ?
Anna Karolina
which library does pdf upload?
Michael the wolf 🐺
to where ? anything to do with http requests use requests module
Michael the wolf 🐺
if its cloud like aws or gcp, then use their own sdk's
Dinesh
Morteza
عبید اللہ
operation error at contact in django
How to fix this error👇
Please help me
django.db.utils.operation: no such table: home_contact
Maxim
Maxim
عبید اللہ
@(*_*)@
i have a model "Table" it has fields: field1,
field2,
......
fieldN
There are a user, each user wants to see in the template only those fields that he needs.
For example:
user1 wants to see in html
field2, field4;
user2 wants to see
field1, field4.
How can this be done in django
عبید اللہ
I don't know tell me how to fix
Maxim
I don't know tell me how to fix
if you don't want to read about migration, hire someone who reads or has read
migrations is a complex subject, and it is impossible to answer your question in a nutshell
max 17
180030282_N.Sai Charitha
AFK
Muhammadamin
guys how do I do recursive function without foreignkey on django rest framework?
Sergey
Hi guys! If someone work with celery, please help me. Can you tell me please why beat, or maybe something else from celery produce too many tasks in queue in rabbitmq and don't clean it. It produce like thousands in minute, when I have not more then hundred of tasks that can have periodic tasks. So what I can do with it. Because now I have a lot of tasks in queue in status pending🤔
عبید اللہ
Muhammadamin
Sanjarbek
Sapna
Hie.... Can anyone please help me with this query:
Sapna
implement the following API features
-Get the list of users, for that list only name, age, the job is required per user.
Sapna
I only want to know how can i make specific column displayed
Rohan
Rohan
Read about how django works cuz no one will do it for you
Sapna
I did read ... Also i got two ways like value_list or values to be used but it's not working how i wanted so reached out here
Rohan
Rohan
value_list will give you a tuple of values
Sapna
Okay
Rohan
values will give you list of dictionaries that is a k,v of column name and value
♈
Rohan
Rohan
You can also pass your QS to sane serializer but she mentioned so I told.
Sapna
I have tried both but I'm getting error I'll share just a sec
Rohan
values()
Sapna
Sorry , my bad not this
Sapna
I'll share the error i was getting
Sapna
"Got KeyError when attempting to get a value for field height on serializer EmployeeSerializer.\nThe serializer field might be named incorrectly and not match any attribute or key on the dict instance.\nOriginal exception text was: 'height'."
Rohan
Rohan
Sapna
I have to paste the code here?
Mirco
Doragonsureiyā
I have to paste the code here?
Rule 5️⃣: To share code or error tracebacks, use an online pasting service like:
- https://del.dog
- https://dpaste.org
- https://linkode.org
- https://hastebin.com
- https://bin.kv2.dev
If you posted a wall of text, go back and delete it.
Sapna
https://linkode.org/#qVad2SftTkJFtFGjuIXIz7
Sapna
while I'm using values()
Sapna
https://linkode.org/#Xa0GkCEKQTQxEw19GVZs42
Sapna
Each user owns the following information:
-Name
-Age
-job
-height
-Weight
-Description
implement the following API features
-create
-update
-delete
-Get the list of users, for that list only name, age, the job is required per user.
Sapna
the only last statement I'm not getting with how and what should i do
Vaibhav
Your seralizer is expecting a height field but when you do values , you are only passing 3 fields and that's why it is breaking
Rohan
Rohan
Problem is that serialiser
Vaibhav
Either you can make a new seralizer for this use case, or make these fields not required in your current one
Rohan
Just return it as is after using values.
Sapna
Sapna
Rohan
And see the response yourself
Rohan
It’ll give you idea
Sapna
okay
Sapna
details: <QuerySet [{'name': 'Vishakha', 'job': 'Software Engineer', 'age': 20}, {'name': 'Vinay', 'job': 'Software', 'age': 25}]>
I got this
Sapna
You mean i have to remove many = True from serializer
Rohan
Rohan