Update value in database

2019-12-19 Thread Nuno Vieira
Hi! I have a real estate django app and i have a form to users insert a new property. I also have in the form several images fields that users can use to upload images to database whitout problem. The problem is if the *user want to delete one of the images field.* I have an ajax request that

Re: ElementTree problem saving images

2019-11-07 Thread Nuno Vieira
ira, 24 de Outubro de 2019 às 16:28:00 UTC+1, Nuno Vieira escreveu: > > Hi, > > i receive an xml file and i am parsing the values and sving them to > database. > >> XML Example: > > ... > ... > ... > > 9896 > 2019-07-11 13:12:09 > BC30401 > 89500

Re: ElementTree problem saving images

2019-11-06 Thread Nuno Vieira
one on every iteration where the id > doesn't match. Try setting all of the urls to None before the loop, then > remove the else blocks. > > On Thursday, October 24, 2019 at 11:28:00 AM UTC-4, Nuno Vieira wrote: >> >> Hi, >> >> i receive an xml fil

ElementTree problem saving images

2019-10-24 Thread Nuno Vieira
Hi, i receive an xml file and i am parsing the values and sving them to database. > XML Example: ... ... ... 9896 2019-07-11 13:12:09 BC30401 895000 EUR sale 0 0 0 915 Villa 37.134720 -8.020436 optional location detail Vilamoura Algarve Portugal 4 3 1 https://bc-villas.com/wp-content/up

Re: delete image url from database

2019-10-16 Thread Nuno Vieira
update the url in database or to delete. I already tried with update Listing.objects.all().filter(id = 1511).update(photo_5 = None) It seems that i can not change the value of photo_5. quarta-feira, 16 de Outubro de 2019 às 15:23:07 UTC+1, Nuno Vieira escreveu: > > Hi there, > >

delete image url from database

2019-10-16 Thread Nuno Vieira
Hi there, i am creating a real estate app and i want users to insert and delete images for the houses. It's all working great except the delete. In my views.py i have the code: listing = Listing.objects.get(id=1511) if listing: listing.photo_5 = None

Re: parse xml from url to database

2019-06-13 Thread Nuno Vieira
, 13 de Junho de 2019 às 00:04:33 UTC+1, Ewen Le Bihan escreveu: > > Hi, where does prof.xml_ky comes from ? > > Le mercredi 12 juin 2019 18:22:01 UTC+2, Nuno Vieira a écrit : >> >> Hi there. >> >> I´m having some problems on parsing a real estate xml to database

Re: parse xml from url to database

2019-06-13 Thread Nuno Vieira
quarta-feira, 12 de Junho de 2019 às 17:22:01 UTC+1, Nuno Vieira escreveu: > > Hi there. > > I´m having some problems on parsing a real estate xml to database. > The user profile have url field to import properties automatically from > xml feed (url). The user can i

parse xml from url to database

2019-06-12 Thread Nuno Vieira
Hi there. I´m having some problems on parsing a real estate xml to database. The user profile have url field to import properties automatically from xml feed (url). The user can insert mannually or automatically, if the user insert the url feed then it should be able to get the objects and save