small99 / autolink Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
Exception
Exception: Missing user_loader or request_loader. Refer to http://flask-login.readthedocs.io/#how-it-works for more info.
Traceback (most recent call last)
File "/Users/apple/.virtualenvs/autoLinkEnv/lib/python3.9/site-packages/flask/app.py", line 2213, in call
return self.wsgi_app(environ, start_response)
File "/Users/apple/.virtualenvs/autoLinkEnv/lib/python3.9/site-packages/flask/app.py", line 2193, in wsgi_app
response = self.handle_exception(e)
File "/Users/apple/.virtualenvs/autoLinkEnv/lib/python3.9/site-packages/flask_restful/init.py", line 298, in error_router
return original_handler(e)
File "/Users/apple/.virtualenvs/autoLinkEnv/lib/python3.9/site-packages/flask/app.py", line 2190, in wsgi_app
response = self.full_dispatch_request()
File "/Users/apple/.virtualenvs/autoLinkEnv/lib/python3.9/site-packages/flask/app.py", line 1486, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/Users/apple/.virtualenvs/autoLinkEnv/lib/python3.9/site-packages/flask_restful/init.py", line 298, in error_router
return original_handler(e)
File "/Users/apple/.virtualenvs/autoLinkEnv/lib/python3.9/site-packages/flask/app.py", line 1484, in full_dispatch_request
rv = self.dispatch_request()
File "/Users/apple/.virtualenvs/autoLinkEnv/lib/python3.9/site-packages/flask/app.py", line 1469, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "/Users/apple/Documents/AutoLink-master/auto/www/blueprints.py", line 30, in index
return render_template('login.html')
File "/Users/apple/.virtualenvs/autoLinkEnv/lib/python3.9/site-packages/flask/templating.py", line 151, in render_template
return _render(app, template, context)
File "/Users/apple/.virtualenvs/autoLinkEnv/lib/python3.9/site-packages/flask/templating.py", line 128, in _render
app.update_template_context(context)
File "/Users/apple/.virtualenvs/autoLinkEnv/lib/python3.9/site-packages/flask/app.py", line 737, in update_template_context
context.update(func())
File "/Users/apple/.virtualenvs/autoLinkEnv/lib/python3.9/site-packages/flask_login/utils.py", line 407, in _user_context_processor
return dict(current_user=_get_user())
File "/Users/apple/.virtualenvs/autoLinkEnv/lib/python3.9/site-packages/flask_login/utils.py", line 372, in _get_user
current_app.login_manager._load_user()
File "/Users/apple/.virtualenvs/autoLinkEnv/lib/python3.9/site-packages/flask_login/login_manager.py", line 347, in _load_user
raise Exception(
Exception: Missing user_loader or request_loader. Refer to http://flask-login.readthedocs.io/#how-it-works for more info.
The debugger caught an exception in your WSGI application. You can now look at the traceback which led to the error.
To switch between the interactive traceback and the plaintext one, you can click on the "Traceback" headline. From the text traceback you can also create a paste of it. For code execution mouse-over the frame you want to debug and click on the console icon on the right side.
You can execute arbitrary Python code in the stack frames and there are some extra helpers available for introspection:
dump() shows all variables in the frame
看这个项目虽小,但各种功能都有,不知道是否有演化出更多功能?
用户注销功能失效: 在auth.py文件中的 get 方法。
def get():
args = self.parser.parse_arges()
username = arges["username"]
if username in session: # 判断错误,username不应该取值session_dict的value值,应该是key值。该判断应该为 if “username” in session
session.pop(username, None) # session_dict删除也是通过key值。应改为 session.pop("username", None) 。 这样修改注销功能才正常
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.