Posts by Sergio Sacchetti Junior • 55 points
4 posts
-
0
votes0
answers12
viewsQ: Return data with CBV using parameters in the Django url
Good evening. I am trying to return the data of a query, and even managed to make the query work. The problem is when to send the data to the template. Always appears the error that has to be a…
-
1
votes1
answer184
viewsQ: Form in Django with more than one Model
I’m new to programming and I’m trying to make a form using more than one Model in Django. I even managed to list the Fields of Forms.py, but when asked to save it only records the data of the first…
-
3
votes1
answer79
viewsQ: Add items within an array
I have the following array: soma_campos = null tabela = [ ['A-B', 22, 0.045, 0.1, 0.005], ['A-C', 50, 0.020, 0.1, 0.002], ['A-D', 48, 0.021, 0.1, 0.002], ['A-E', 29, 0.034, 0.1, 0.003] ] How can I…
pythonasked Sergio Sacchetti Junior 55 -
1
votes1
answer85
viewsQ: Urls accumulating in DJANGO
My urls are accumulating. When I pass via tag a[href="exemplo"] he sends it to url http://localhost:8000/index/, but if I click again on some other link from the same menu, it will redirect to…