Valery
i need a subquery or CTE, a second query need ordered
More examples https://books.agiliq.com/projects/django-orm-cookbook/en/latest/subquery.html
Sea Dragon
i need a subquery or CTE, a second query need ordered
if tables are foreign key connected, then you can use __ or _
cr
I have created drop down menu When i click on it it opens on other side of page and not below it Pls help
Vivek
whats the error message ?
I shared it na see the images this error was occuring only for Delete requests
Sea Dragon
I shared it na see the images this error was occuring only for Delete requests
u r getting the data, not deleting it to delete u have to add .delete() at the end of query
Anonymous
u r getting the data, not deleting it to delete u have to add .delete() at the end of query
hi dear your name is really sea dragon😁🤦🏻🙄🙄😳
Sea Dragon
I shared it na see the images this error was occuring only for Delete requests
print the method which is been requested u have to add a if condition to do operation of each different request type
Vivek
u r getting the data, not deleting it to delete u have to add .delete() at the end of query
I also thought the same, but Adding .delete() returned the same error
Valery
I also thought the same, but Adding .delete() returned the same error
Also why you are combine read and write requests?
Vivek
i cant paste code here?
Valery
!paste
Doragonsureiyā
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.
Vivek
this is the code i was following: https://del.dog/bigneefyvi.txt
Vivek
this is the code after you guided me to fix it and it worked: https://del.dog/ealegneste.txt
Valery
you are missed action for delete (if statement). And this is very bad code. Maybe this is teaching approach...
Ganesh
Namaste .... I am beginner at django ..i have runserver with poll but i am getting same server as the before poll and if itry doing localhost:8000/poll/ I am getting 404 error
Ganesh
Can anyone help
Ganesh
I host it in windows
Valery
this is the code i was following: https://del.dog/bigneefyvi.txt
I think the problem is that you are sending the request incorrectly. How you trying delete object? For delete and other w requests you need use some REST soft like postman. Or use drf templates
Valery
from postman delete correctly with your code
Sea Dragon
this is the code after you guided me to fix it and it worked: https://del.dog/ealegneste.txt
if you are using django rest framework try to write the serializer, it will handle all the menthos for you
🏁 🏁 🏁
Doragonsureiyā
Thank you!
You're welcome! 😊
Utsav
Anyone knows how to use Django AJAX ?? Like django pass a object on popup model.. Any example ? Plz guide me
Hian
select * from ( select distinct on ("roteirizador_rotacliente"."latitude", "roteirizador_rotacliente"."longitude") "roteirizador_rotacliente"."cliente_id", "roteirizador_rotacliente"."sequencia_atendimento", "roteirizador_rotacliente"."latitude" as "lat", "roteirizador_rotacliente"."longitude" as "lng", rota_id from "roteirizador_rotacliente" order by "roteirizador_rotacliente"."latitude" asc, "roteirizador_rotacliente"."longitude" asc, roteirizador_rotacliente.rota_id asc) x order by x.rota_id
Hian
Sea Dragon
Hian
postgres
Sea Dragon
postgres
okay will ping you directly
sinyor
hello guys i am new on django and i have some issue about rest framework... if anyone wants to look it is here: https://stackoverflow.com/questions/67506310/django-rest-access-model-values-in-another-model?noredirect=1#comment119320267_67506310
Ted
I know it's missing somethings
Ted
But idk what it is
Valery
than why did you import UserAdmin?
Ted
I'm assuming this is how it was originally designed
Valery
can you provide more info. Maybe more stack trace. What is Home_template?
Anonymous
Hello friends How can I get international django project do you have freelancer or something like that ?
RKumar
How to save simple html data in django plz help me
Anonymous
RKumar
I am copy template from Google but my template data is not save in model
RKumar
What logic write in views
RKumar
Ok sure sir
RKumar
I am not using forms or modelforms using simple template how to save data please help me
RKumar
How to use ajax ?
Anonymous
How to use ajax ?
It's very simple AJAX is Jquery technology you can send data to back-end with out reload
RKumar
Any link sir
Anonymous
Any link sir
Can I send link in group ?
RKumar
Ok sir
RKumar
This tutorial can you send me sir
RKumar
Simple template
Anonymous
Simple template
please come in PV
RKumar
I don't understand pv
Anonymous
Ashutosh
I am getting error Rest_framework.exeptions.ParseError : JSON parse error -Expecting value : line 1 column 1
Valery
so many uninformative questions(
Ashutosh
Valery
Provide more info. Think you are trying parse invalid data format
Anonymous
Zdravstvuyte, menya zovut Timur, ya praktikuyu Python 1 god, delayu bekend na Python. Django. Te, komu interesno, pridut i zadadut voprosy @Python_I_love☺️
Anonymous
Hello, my name is Timur, I have been practicing Python for 1 year, making a backend in Python. Django. Those who are interested will come and ask questions @Python_I_love
Ted
What your urls?
I'll include them
ᕼᗩᑕKᗴᖇ
Facing error GET favicon.ico how do i resolve it
ᕼᗩᑕKᗴᖇ
Devesh
Any one doing freelancing in web development?
Mirco
Choose a favicon and add into your static files