Closed wangyishuai007 closed 9 years ago
same to me!
Thank you for your answer Now, do not report 'typeerror' error, but there is a new error, as follows: open http://192.168.1.98:5000/admin/
Traceback (most recent call last): File "/root/quokka-env/lib/python2.7/site-packages/flask/app.py", line 1836, in call return self.wsgi_app(environ, start_response) File "/root/quokka-env/lib/python2.7/site-packages/flask/app.py", line 1820, in wsgi_app response = self.make_response(self.handle_exception(e)) File "/root/quokka-env/lib/python2.7/site-packages/flask/app.py", line 1403, in handle_exception reraise(exc_type, exc_value, tb) File "/root/quokka-env/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app response = self.full_dispatch_request() File "/root/quokka-env/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request rv = self.handle_user_exception(e) File "/root/quokka-env/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception reraise(exc_type, exc_value, tb) File "/root/quokka-env/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request rv = self.dispatch_request() File "/root/quokka-env/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request return self.view_functionsrule.endpoint File "/root/quokka-env/lib/python2.7/site-packages/flask_admin/base.py", line 64, in inner abort = self._handle_view(f.name, **kwargs) File "/data/git/quokka/quokka/core/admin/models.py", line 53, in _handle_view if not current_user.is_authenticated(): TypeError: 'bool' object is not callable
My system information as follows:
CentOS 6.6 Linux xfwy 2.6.32-504.23.4.el6.x86_64 # 1 SMP Tue Jun 9 20:57:37 UTC 2015 x86_64 x86_64 x86_64 GNU / Linux python 2.7.10
This is a problem in flask-login update https://github.com/maxcountryman/flask-login/commit/3f3c57aaa631093af843aa7757a7692218f1d47f
@wangyishuai007 should now be fixed, please install it again, I had to downgrade flask-login to 0.2.11
pip install flask-login==0.2.11
because they broke compatibility in the https://github.com/maxcountryman/flask-login/issues/230
Thank you very much, and now everything is normal.
createuser
This should be how do?