-
-
Notifications
You must be signed in to change notification settings - Fork 16.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
flask-login does not work when using static_url_path #521
Comments
can you provide a minimal example? from flask import Flask, url_for
app = Flask(__name__, static_folder='public', static_url_path='')
with app.test_request_context():
url_for('static', filename='style.css') outputs |
I'm having the same problem. It seems to be a flask-login specific issue though. I've created a flask-login bug report maxcountryman/flask-login#51 |
Should this be closed? |
Yes it should |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
For some reason
app = flask.Flask(__name__, static_folder='public', static_url_path='')
will cause flask-login to return
AttributeError: 'RequestContext' object has no attribute 'user'
, andapp = flask.Flask(__name__, static_folder='public')
works
The text was updated successfully, but these errors were encountered: