Python Forum
Need help with code - thanks!
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help with code - thanks!
#7
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)
Reply


Messages In This Thread
Need help with code - thanks! - by card51shor - Jun-06-2020, 07:46 PM
RE: Need help with code - thanks! - by buran - Jun-06-2020, 07:53 PM
RE: Need help with code - thanks! - by card51shor - Jun-06-2020, 07:56 PM
RE: Need help with code - thanks! - by buran - Jun-06-2020, 08:04 PM
RE: Need help with code - thanks! - by card51shor - Jun-06-2020, 08:08 PM
RE: Need help with code - thanks! - by buran - Jun-06-2020, 08:11 PM
RE: Need help with code - thanks! - by card51shor - Jun-06-2020, 08:13 PM
RE: Need help with code - thanks! - by buran - Jun-06-2020, 08:23 PM
RE: Need help with code - thanks! - by buran - Jun-06-2020, 08:23 PM
RE: Need help with code - thanks! - by card51shor - Jun-06-2020, 08:31 PM
RE: Need help with code - thanks! - by buran - Jun-06-2020, 08:36 PM
RE: Need help with code - thanks! - by card51shor - Jun-06-2020, 08:42 PM
RE: Need help with code - thanks! - by buran - Jun-06-2020, 08:44 PM
RE: Need help with code - thanks! - by card51shor - Jun-06-2020, 09:22 PM
RE: Need help with code - thanks! - by buran - Jun-07-2020, 04:06 AM
RE: Need help with code - thanks! - by card51shor - Jun-07-2020, 05:17 AM
RE: Need help with code - thanks! - by card51shor - Jun-07-2020, 06:44 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020