ktosiu / flask-security-flask-admin-mongodb

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

alt Flask-Admin alt Flask-security

Flask-Securyty & Flask-Admin & MongoDB in one app

This code base serves as starting point for writing your next Flask application.

Code characteristics

  • Well organized directories with lots of comments
    • app
      • models
      • static
      • templates
      • views
  • Sends error emails to admins for unhandled exceptions

Setting up a development environment

We assume that you have git, virtualenv and mongoDB installed.

cd ~ virtualenv env . env/bin/activate mkdir -p ~/www/my_app cd www git clone https://github.com/Alexmod/flask-security-flask-admin-mongodb.git my_app cd my_app/ pip install -r requirements.txt

Configuring SMTP

Edit the local_settings.py file.

Specifically set all the MAIL_... settings to match your SMTP settings

Note that Google's SMTP server requires the configuration of "less secure apps". See https://support.google.com/accounts/answer/6010255?hl=en

Note that Yahoo's SMTP server requires the configuration of "Allow apps that use less secure sign in". See https://help.yahoo.com/kb/SLN27791.html

Running the app

Start the Flask development web server

flask run --host=0.0.0.0

Point your web browser to http://your_ip:5000/

You can make use of the following users:

  • email user@example.com with password Password1.
  • email admin@example.com with password Password1.

About


Languages

Language:Python 49.4%Language:HTML 48.0%Language:CSS 2.6%