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
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
Doragonsureiyā
I want creat app in heroku but it was wrong. Who know is it
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.
AFK
I want creat app in heroku but it was wrong. Who know is it
See if there are any space issues while writing the command
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
Im getting this error. Can anyone help me pls
check the wsgi path in settings
عبید اللہ
operation error at contact in django How to fix this error👇 Please help me django.db.utils.operation: no such table: home_contact
@(*_*)@
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
AFK
operation error at contact in django How to fix this error👇 Please help me django.db.utils.operation: no such table: home_contact
Try running Manage.py makemigrations Then Manage.py migrate There is a operation error, your database has some issues
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🤔
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
I only want to know how can i make specific column displayed
Use ORM and select the fields you wanna show
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
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
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
Doragonsureiyā
I have tried both but I'm getting error I'll share just a sec
Rule 5️⃣: Never post walls of text or screen photos. Use paste bins like https://linkode.org, https://nekobin.com (or your favorite one)
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'."
Sapna
I have to paste the code here?
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
Vaibhav
https://linkode.org/#qVad2SftTkJFtFGjuIXIz7
That error is coming while you are trying to use get method?
Sapna
while I'm using values()
Vaibhav
while I'm using values()
What does your seralizer look like
Sapna
https://linkode.org/#Xa0GkCEKQTQxEw19GVZs42
Vaibhav
while I'm using values()
Also when you do values, your own returns a dictionary and not an object...
Vaibhav
https://linkode.org/#Xa0GkCEKQTQxEw19GVZs42
And is height a mandatory field in your model?
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
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
Rohan
Didn't got u
On line 20, return emp
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