Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Flask app for store user in MongoDB and simple views for login, logout and registration.

Project Description

Flask app for store user in MongoDB and simple views for login, logout and registration.

  • Free software: BSD license

Quickstart

Install flask-musers:

pip install flask-musers

In the app you must init the MUsers:

from flask import Flask
from flask.ext.musers import MUsers

app = Flask(__name__)
MUsers(app)

and register flask-musers blueprint:

from flask_musers.views import musers

app.register_blueprint(musers)

then must be prepared templates for registration - musers/register.html and login - musers/login.html.

Views has names musers.register, musers.login and musers.logout. They are used in url_for:

from flask import url_for

url_for('musers.register')
url_for('musers.login')
url_for('musers.logout')

Config

  • MUSERS_ALLOW_REGISTRATIONS - set to False, when you want disable registrations. Default: True
  • MUSERS_PASSWORD_VALIDATOR - used for custom validator. The dotted name for the object to import. Default: None

History

0.0.1 (2013-09-17)

  • First release on PyPI.
Release History

Release History

This version
History Node

0.5.4

History Node

0.5.2

History Node

0.5.1

History Node

0.4.0

History Node

0.3.0

History Node

0.2.5

History Node

0.2.4

History Node

0.2.3

History Node

0.2.2

History Node

0.2.0

History Node

0.1.1

History Node

0.0.7

History Node

0.0.6

History Node

0.0.5

History Node

0.0.4

History Node

0.0.3

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
flask-musers-0.5.4.tar.gz (8.1 kB) Copy SHA256 Checksum SHA256 Source Oct 22, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting