Posts by Camila07 • 96 points
6 posts
-
6
votes2
answers441
viewsA: Check if a string belongs to a list
mensagem receives a list of the characters typed by the user. Therefore, the comparison with vogais will only work if you compare using an index, thus: mensagem = list(input("Digite qualquer…
-
1
votes1
answer900
viewsA: Attributeerror: 'list' Object has no attribute '_meta'
You’re trying to change one object, one person, but you’re searching for a list from the bank: visitantes = get_list_or_404(DadosPessoas, id=id) For django documentation, the method…
-
1
votes2
answers171
viewsA: Write JSON to Javascript object
You empty the vector data that contains data coming from your API after passing only the property Dados for another variable. In the loop, the program tries to read the property that no longer…
-
0
votes1
answer155
viewsA: How to upload css file to Django?
Try using the following syntax in your templates: <link rel="stylesheet" href={% static 'caminho/para/o/seu/arquivo.css' %}/> Serves for any file inside the directory /static.…
-
0
votes2
answers81
viewsA: Align data tbody with theady
Just like you used the .append() to place elements in the tr, you can use it to put the text in the elements td that the result will be correct. For example: var name = document.createElement('td');…
-
0
votes2
answers1493
viewsA: Change the entire color of a React tab
The height of the component App is limited to its content, so it does not reach the full page. You can edit the css and put it on .App the property height: 100vh. That one vh is the unit of 1% of…