Advertisement
Guest User

'_QueryProxy' object has no attribute 'paginate'

a guest
Aug 29th, 2013
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.31 KB | None | 0 0
  1. AttributeError
  2. AttributeError: '_QueryProxy' object has no attribute 'paginate'
  3.  
  4. Traceback (most recent call last)
  5. File "C:\Users\Dwayne Boothe\Documents\Projects\Tutorials\Python\microblog\flask\lib\site-packages\flask\app.py", line 1701, in __call__
  6. return self.wsgi_app(environ, start_response)
  7. File "C:\Users\Dwayne Boothe\Documents\Projects\Tutorials\Python\microblog\flask\lib\site-packages\flask\app.py", line 1689, in wsgi_app
  8. response = self.make_response(self.handle_exception(e))
  9. File "C:\Users\Dwayne Boothe\Documents\Projects\Tutorials\Python\microblog\flask\lib\site-packages\flask\app.py", line 1687, in wsgi_app
  10. response = self.full_dispatch_request()
  11. File "C:\Users\Dwayne Boothe\Documents\Projects\Tutorials\Python\microblog\flask\lib\site-packages\flask\app.py", line 1360, in full_dispatch_request
  12. rv = self.handle_user_exception(e)
  13. File "C:\Users\Dwayne Boothe\Documents\Projects\Tutorials\Python\microblog\flask\lib\site-packages\flask\app.py", line 1358, in full_dispatch_request
  14. rv = self.dispatch_request()
  15. File "C:\Users\Dwayne Boothe\Documents\Projects\Tutorials\Python\microblog\flask\lib\site-packages\flask\app.py", line 1344, in dispatch_request
  16. return self.view_functions[rule.endpoint](**req.view_args)
  17. File "C:\Users\Dwayne Boothe\Documents\Projects\Tutorials\Python\microblog\flask\lib\site-packages\flask_login.py", line 663, in decorated_view
  18. return func(*args, **kwargs)
  19. File "C:\Users\Dwayne Boothe\Documents\Projects\Tutorials\Python\microblog\app\views.py", line 22, in index
  20. posts = g.user.followed_posts().paginate(page, POSTS_PER_PAGE, False)
  21. AttributeError: '_QueryProxy' object has no attribute 'paginate'
  22. The debugger caught an exception in your WSGI application. You can now look at the traceback which led to the error.
  23. 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.
  24.  
  25. You can execute arbitrary Python code in the stack frames and there are some extra helpers available for introspection:
  26.  
  27. dump() shows all variables in the frame
  28. dump(obj) dumps all that's known about the object
  29. Brought to you by DON'T PANIC, your friendly Werkzeug powered traceback interpreter.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement