Coder Social home page Coder Social logo

autolink's People

Contributors

catleer avatar catleerc avatar cherryxbb avatar mmcatt avatar small99 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

autolink's Issues

打开地址就报错

image

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 bug

用户注销功能失效: 在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)  。 这样修改注销功能才正常

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.