Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/miohtama/moot.it-single-signon-example
Django and moot.it forums integration example
https://github.com/miohtama/moot.it-single-signon-example
Last synced: 23 days ago
JSON representation
Django and moot.it forums integration example
- Host: GitHub
- URL: https://github.com/miohtama/moot.it-single-signon-example
- Owner: miohtama
- Created: 2013-07-02T07:15:17.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-07-18T22:28:24.000Z (over 11 years ago)
- Last Synced: 2024-11-11T12:45:36.471Z (3 months ago)
- Language: Python
- Homepage:
- Size: 125 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
Moot.it forum integration example with Django
-----------------------------------------------Single-sign-on JavaScript embeddable forms for Django from `moot.it `_.
* Integrates with `django-avatar `_
to set user forum avatar photos.* `django-registration `_ based user sign up
workflow* `django-registration-defaults `_ provides
dummy log in and sign up form templates needed to test the exampleRunning
---------Create Moot.it account and register to their single sign-on program (20 USD as writing of this).
**Note**: You can test the avatar image part without actually signing up to Moot.it. Just supply
a dummy API key. Avatar form works even if the forum doesn't load.First get `virtualenv `_ to your OS.
Example (Python 2.7)::
git clone [email protected]:miohtama/moot.it-single-signon-example.git
cd moot.it-single-signon-example
virtualenv venv # Use virtualenv command for your Python
source venv/bin/activate
pip install Django==1.4 # Install django
pip install Pillow==2.1.0 # Image handling
pip install python-magic==0.4.3
pip install django-registration==1.0 # User sign up
pip install "git+https://github.com/yourcelf/django-registration-defaults.git#egg=django-registration-defaults"
pip install avatar==1.0.5 # Set forum avatar images
python manage.py syncdb # Create admin user# Start Django dev server with Moot.it credentials given as OS environment variables
MOOT_IT_FORUM_URL="https://moot.it/i/YOURFORUM" MOOT_IT_API_KEY="your-moot-it-api-key" MOOT_IT_API_SECRET="your-moot-it-api-secret" python manage.py runserverThen visit `http://localhost:8000 `_ and you should see the forums anonymously.
Go to `http://localhost:8000/admin/ `_ to login as admin user.
Then visit `http://localhost:8000/ `_ again to see the logged in version.
Various debug info is printed to *stdout* when you open the forum view.
Author
------Mikko Ohtamaa (`blog `_, `Facebook `_, `Twitter `_, `Google+ `_)