Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

small bug in the example app #31

Closed
wants to merge 1 commit into from

2 participants

@mattupstate
Owner

This is because you're using the code from the example app in the develop branch. It will not work when you install Flask-Security from pip with pip install flask-security.

If you want to use the code from the example app in the develop branch, you need to install flask-security with pip as such:

pip install https://github.com/mattupstate/flask-security/tarball/develop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 example/app.py
View
4 example/app.py
@@ -14,8 +14,8 @@
from flask.ext.sqlalchemy import SQLAlchemy
from flask.ext.security import Security, LoginForm, login_required, \
roles_required, roles_accepted, UserMixin, RoleMixin
-from flask.ext.security.datastore import SQLAlchemyUserDatastore, \
- MongoEngineUserDatastore
+from flask.ext.security.datastore.sqlalchemy import SQLAlchemyUserDatastore
+from flask.ext.security.datastore.mongoengine import MongoEngineUserDatastore
from flask.ext.security.decorators import http_auth_required, \
auth_token_required
Something went wrong with that request. Please try again.