jinja2.exceptions.UndefinedError: 'str object' has no attribute 'username'
问题 I am having issues getting my flask app to recognize my form variables when trying to load the register.html page. I have tried to reload my virtualenv and have tried to load the template code from another person and I get the same error. Here is the traceback I am getting. File "s:\projects\gameapp\env\lib\site-packages\flask\app.py", line 2309, in __call__ return self.wsgi_app(environ, start_response) File "s:\projects\gameapp\env\lib\site-packages\flask\app.py", line 2295, in wsgi_app