Advertisement
Guest User

Untitled

a guest
Dec 2nd, 2011
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.56 KB | None | 0 0
  1. AssertionError
  2.  
  3. AssertionError: A setup function was called after the first request was handled. This usually indicates a bug in the application where a module was not imported and decorators or other functionality was called too late. To fix this make sure to import all your view modules, database models and everything related at a central place before the application starts serving requests.
  4. Traceback (most recent call last)
  5.  
  6. File "/home/deadshox/workspace/projects/haengebruegge/lib/python2.7/site-packages/flask/app.py", line 1518, in __call__
  7.  
  8. return self.wsgi_app(environ, start_response)
  9.  
  10. File "/home/deadshox/workspace/projects/haengebruegge/lib/python2.7/site-packages/flask/app.py", line 1506, in wsgi_app
  11.  
  12. response = self.make_response(self.handle_exception(e))
  13.  
  14. File "/home/deadshox/workspace/projects/haengebruegge/lib/python2.7/site-packages/flask/app.py", line 1504, in wsgi_app
  15.  
  16. response = self.full_dispatch_request()
  17.  
  18. File "/home/deadshox/workspace/projects/haengebruegge/lib/python2.7/site-packages/flask/app.py", line 1264, in full_dispatch_request
  19.  
  20. rv = self.handle_user_exception(e)
  21.  
  22. File "/home/deadshox/workspace/projects/haengebruegge/lib/python2.7/site-packages/flask/app.py", line 1262, in full_dispatch_request
  23.  
  24. rv = self.dispatch_request()
  25.  
  26. File "/home/deadshox/workspace/projects/haengebruegge/lib/python2.7/site-packages/flask/app.py", line 1248, in dispatch_request
  27.  
  28. return self.view_functions[rule.endpoint](**req.view_args)
  29.  
  30. File "/home/deadshox/workspace/projects/haengebruegge/project/web/app/views/references.py", line 15, in index
  31.  
  32. db = MongoKit(current_app)
  33.  
  34. File "/home/deadshox/workspace/projects/haengebruegge/lib/python2.7/site-packages/flaskext/mongokit.py", line 88, in __init__
  35.  
  36. self.init_app(self.app)
  37.  
  38. File "/home/deadshox/workspace/projects/haengebruegge/lib/python2.7/site-packages/flaskext/mongokit.py", line 112, in init_app
  39.  
  40. app.before_request(self.before_request)
  41.  
  42. File "/home/deadshox/workspace/projects/haengebruegge/lib/python2.7/site-packages/flask/app.py", line 56, in wrapper_func
  43.  
  44. raise AssertionError('A setup function was called after the '
  45.  
  46. AssertionError: A setup function was called after the first request was handled. This usually indicates a bug in the application where a module was not imported and decorators or other functionality was called too late. To fix this make sure to import all your view modules, database models and everything related at a central place before the application starts serving requests.
  47.  
  48.  
  49.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement