Comments (10)
I have the same issue
from flask-login.
Actually if I use
app = flask.Flask(__name__, static_folder='public', static_url_path='')
I get the error, but if I use
app = flask.Flask(__name__, static_folder='public')
it works, any idea why it is so?
from flask-login.
This might be fixed now.
from flask-login.
I'm having the same issue when I combine Flask-Login with Flask-Principal...
Inside the routes (@app.route... current_user) it works well but when I try to set the identity in the @identity_loaded.connect_via(app) method it doesn't find the user in the ctx. I'm using Flask 0.9, Flask-Principal 0.3 and Flask-Login (latest downloaded from GitHub today)
from flask-login.
I'm having the same problem as @dfrocha
from flask-login.
Sorry, we can't directly support Flask-Principal. This seems to be an issue on their end. We haven't had similar reports or been able to reproduce this with just Flask-Login. Closing this.
from flask-login.
I have the same issue but am not using Flask-Principal ...
from flask-login.
Problem solved for me:
We have to configure flask-login before flask principal.
This portion of code generate an error
app = Flask(name)
Principal(app)
login_manager = LoginManager()
login_manager.setup_app(app)
But this code work fine for me
app = Flask(name)
login_manager = LoginManager()
login_manager.setup_app(app)
Principal(app)
from flask-login.
Thanks.
from flask-login.
I also had an error with this without Principal installed. But it turned out I had forgotten to call my configure_extensions method that initializes Flask-Login among others. So yeah, that's why the exception was raised in my case.
from flask-login.
Related Issues (20)
- not compatible with Werkzeug 3.0.0 HOT 1
- Latest version not published to PyPi HOT 1
- Session key value pairs disappears after leaving the route that set it. HOT 1
- Flask-login become incompatible with Werkzeug HOT 2
- Werkzeug deprecated methods have been removed and are still used in flask-login HOT 3
- Incompatibility with Werzeug 3.0.0 (Flask 3.0.0) HOT 1
- When to release a Flask3.0-compatible update? HOT 1
- flask_login/utils.py: from werkzeug.urls import url_decode is deprecated in werkzeug==3.0.0 HOT 1
- Push the Flask 3.0 compatibility update to pypi HOT 2
- `ImportError: cannot import name 'url_decode' from 'werkzeug.urls'` after upgrading `werkzeug` to 3.0.0 HOT 2
- Flask-Login compatibility issue with Flask 3.0 not deployed to PyPI HOT 4
- PyPI version update HOT 1
- temporary workaround for flask/werkzeug/url_decode/package not in pypi questions HOT 1
- New version HOT 1
- Where's the duplicate issue for 0.6.2 incompatibility? HOT 3
- sqlalchemy.exc.LegacyAPIWarning: The Query.get() method is considered legacy as of the 1.x series of SQLAlchemy and becomes a legacy construct in 2.0. The method is now available as Session.get() (deprecated since: 2.0) (Background on SQLAlchemy 2.0 at: https://sqlalche.me/e/b8d9) HOT 3
- Remember cookie set on page loads when REMEMBER_COOKIE_REFRESH_EACH_REQUEST is set to True, regardless of whether a remember cookie was set when the user logged in
- The Firefox browser is unable to log out accurately HOT 1
- [DELETED] HOT 1
- order of login_required annotation HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flask-login.