Skip to content
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

Deprecation warning for import of flask-basicauth #8

Open
rhorst opened this issue Oct 18, 2016 · 1 comment
Open

Deprecation warning for import of flask-basicauth #8

rhorst opened this issue Oct 18, 2016 · 1 comment

Comments

@rhorst
Copy link
Contributor

rhorst commented Oct 18, 2016

Hi,

I'd been getting the following warning repeatedly whenever starting my flask server while working on my app::

1: ExtDeprecationWarning: Importing flask.ext.basicauth is deprecated, use flask
    _basicauth instead.
    .format(x=modname), ExtDeprecationWarning
    * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)

It was really easy to fix - instead of having::
from flask.ext.basicauth import BasicAuth

I had to write::
from flask_basicauth import BasicAuth

However, I noticed that your documentation is a bit out of date and lists the old method of importing an extension. Can I submit a PR and fix this for you?

@jpvanhal
Copy link
Owner

Sure, go ahead!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants