Posts by BeatrizGomes • 67 points
8 posts
-
0
votes1
answer43
viewsQ: Django - add user as team member in view
How to allow a user to register to already become a team member through their own view in Django? I tried it this way, but nothing happened. py views.: def cadastro(request): form =…
-
-1
votes1
answer68
viewsQ: Inserting records into the database from a file
I’m trying to enter records into my database, specifically the model Participante from a file .csv, whose format is id, name, Cpf and email. So far what I have in mine views.py is: def…
-
0
votes1
answer120
viewsQ: Error connecting to SQL Server using pyodbc
I am trying to connect to SQL Server database using pyodbc lib in Python, but I am encountering error right from the start. Follow the code and error below. Script: import pyodbc conn =…
-
0
votes1
answer37
viewsQ: Validate upload of csv files
I have a form that one of the fields asks for a file. The point is that only files . csv should be allowed, but I’m not getting the validation. Follow the code below with my last attempt. Filing…
-
2
votes3
answers37
viewsQ: Send template data to database
I am facing a problem that in Django, in which my form cannot be validated, therefore, does not enter the data in the database. I want the user to have the option of adding a teacher. The structure…
-
0
votes0
answers28
viewsQ: Validate upload by csv only
I have a small form where I ask the user to insert a csv file, however if the user inserts a file with different format he simply lets it pass. I’ve tried everything, but I’m not getting it done.…
-
0
votes1
answer123
viewsQ: Validate csv file in Django
I am trying to insert a function to validate the upload of a . csv, but when placing it the following error was presented: ImportError: cannot import name 'PresencaProf' from partially initialized…
-
1
votes0
answers1019
viewsQ: Attributeerror: 'Nonetype' Object has no attribute 'saldoConta'
I’m starting my POO studies with python and I took a class test ContaBancaria very simple, whose methods would only be withdrawal and deposit. But when I interact with the user, I can’t assign the…