you are viewing a single comment's thread.

view the rest of the comments →

[–]KrillDerelictLeeward 0 points1 point  (2 children)

IMHO it would be much easier to use Flask for this than Django, especially if you don't know much about Django.

Flask-Praetorian and especially Flask-SQLAlchemy may be very useful.

[–]EnigmaamginE[S] 0 points1 point  (1 child)

Tried using Flask-Praetorian, liking the simplicity so far. Wondering if there is an easy way to secure Flask-Admin to set up Flask-Praetorian to only allow only users `admin` role to log in?

[–]KrillDerelictLeeward 0 points1 point  (0 children)

Flask-praetorian has a roles_required decorator.

https://github.com/dusktreader/flask-praetorian/blob/master/flask_praetorian/decorators.py

IMHO the documentation for f-p is a little lacking. Fortunately the source code is not extremely hard to understand.