Jun-06-2020, 08:13 PM
(This post was last modified: Jun-06-2020, 08:22 PM by card51shor.)
actually, when i delete that return line, i get an error saying NameError: name 'request' is not defined:
OK i imported "request".
Then I moved the return register.html line to after dbcommit(). now i'm getting an error that says:
sqlalchemy.exc.StatementError
sqlalchemy.exc.StatementError: (sqlalchemy.exc.InvalidRequestError) A value is required for bind parameter 'username'
[SQL: INSERT INTO users (username, password) VALUES (%(username)s, %(password)s]
[parameters: [{}]]
(Background on this error at: http://sqlalche.me/e/cd3x)
OK i imported "request".
Then I moved the return register.html line to after dbcommit(). now i'm getting an error that says:
sqlalchemy.exc.StatementError
sqlalchemy.exc.StatementError: (sqlalchemy.exc.InvalidRequestError) A value is required for bind parameter 'username'
[SQL: INSERT INTO users (username, password) VALUES (%(username)s, %(password)s]
[parameters: [{}]]
(Background on this error at: http://sqlalche.me/e/cd3x)