Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AssertionError
- 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.
- Traceback (most recent call last)
- File "/home/deadshox/workspace/projects/haengebruegge/lib/python2.7/site-packages/flask/app.py", line 1518, in __call__
- return self.wsgi_app(environ, start_response)
- File "/home/deadshox/workspace/projects/haengebruegge/lib/python2.7/site-packages/flask/app.py", line 1506, in wsgi_app
- response = self.make_response(self.handle_exception(e))
- File "/home/deadshox/workspace/projects/haengebruegge/lib/python2.7/site-packages/flask/app.py", line 1504, in wsgi_app
- response = self.full_dispatch_request()
- File "/home/deadshox/workspace/projects/haengebruegge/lib/python2.7/site-packages/flask/app.py", line 1264, in full_dispatch_request
- rv = self.handle_user_exception(e)
- File "/home/deadshox/workspace/projects/haengebruegge/lib/python2.7/site-packages/flask/app.py", line 1262, in full_dispatch_request
- rv = self.dispatch_request()
- File "/home/deadshox/workspace/projects/haengebruegge/lib/python2.7/site-packages/flask/app.py", line 1248, in dispatch_request
- return self.view_functions[rule.endpoint](**req.view_args)
- File "/home/deadshox/workspace/projects/haengebruegge/project/web/app/views/references.py", line 15, in index
- db = MongoKit(current_app)
- File "/home/deadshox/workspace/projects/haengebruegge/lib/python2.7/site-packages/flaskext/mongokit.py", line 88, in __init__
- self.init_app(self.app)
- File "/home/deadshox/workspace/projects/haengebruegge/lib/python2.7/site-packages/flaskext/mongokit.py", line 112, in init_app
- app.before_request(self.before_request)
- File "/home/deadshox/workspace/projects/haengebruegge/lib/python2.7/site-packages/flask/app.py", line 56, in wrapper_func
- raise AssertionError('A setup function was called after the '
- 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.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement