Skip to content
This repository

User management in each new app is a pain. This is the last time you should be doing it

branch: master
Octocat-spinner-32 alembic User referrer id for #84
Octocat-spinner-32 instance Remove description in User/Org. Fixes #112
Octocat-spinner-32 lastuser_core User referrer id for #84
Octocat-spinner-32 lastuser_oauth Handle unusual LinkedIn login failure.
Octocat-spinner-32 lastuser_ui Remove description in User/Org. Fixes #112
Octocat-spinner-32 lastuserapp Update _version.py
Octocat-spinner-32 tests Fix test
Octocat-spinner-32 .gitignore Ignore PyCharm folder.
Octocat-spinner-32 .travis.yml Fix Travis.
Octocat-spinner-32 CHANGES.rst Refactoring complete. Now a multi-file app.
Octocat-spinner-32 LICENSE.txt Update copyright.
Octocat-spinner-32 MANIFEST.in Refactoring complete. Now a multi-file app.
Octocat-spinner-32 README.rst Updated dependencies in requirements.txt and also updated database se…
Octocat-spinner-32 alembic.ini Alembic migrations.
Octocat-spinner-32 config.rb Reorganized code into multiple blueprints.
Octocat-spinner-32 manage.py manage.py db create was throwing error: AssertionError: The sqlalchem…
Octocat-spinner-32 requirements.txt Updated dependencies in requirements.txt and also updated database se…
Octocat-spinner-32 rq.sh RQ settings.
Octocat-spinner-32 rqdev.py RQ config and Alembic versioning in manage.py
Octocat-spinner-32 rqinit.py RQ config and Alembic versioning in manage.py
Octocat-spinner-32 runserver.py Don't autocreate db tables.
Octocat-spinner-32 setup.cfg tests should cover all three lastuser blueprints
Octocat-spinner-32 shell.py Make models available in shell.
Octocat-spinner-32 sitecustomize.py Fix hasattr spelling.
Octocat-spinner-32 test_requirements.txt Remove classmethod-based APIs
Octocat-spinner-32 website.py Reorganized code into multiple blueprints.
Octocat-spinner-32 website.wsgi Reorganized code into multiple blueprints.
README.rst

Lastuser

User management is a pain. There's no need to write new user management code for each new app to do basic things like logging in, managing the profile and verifying email addresses. Setup one Lastuser instance for all your apps and defer all user management to it. Use the API to integrate with your app.

This project is a work in progress.

Test deployment

Here is how you make a test deployment:

$ git clone https://github.com/hasgeek/lastuser
$ cd lastuser
$ cp instance/settings-sample.py instance/settings.py
$ open instance/settings.py # Customize this file as needed
$ pip install -r requirements.txt
$ python runserver.py

You may also want to setup the database with:

$ python manage.py db create

For development setup, you can also set the CACHE_TYPE to simple in instance/settings.py or in instance/development.py:

#: Cache type
CACHE_TYPE = 'simple'
Something went wrong with that request. Please try again.