Python OpenID library is required to run openid_provider.
Optional you can add django_openid_auth for its DjangoOpenIDStore - otherwise openid_provider will use FileOpenIDStore which is less secure in shared hosting environments.
Copy openid_provider into your project directory (or link to it).
Add 'openid_provider' to INSTALLED_APPS, openid_provider requre at least:
'django.contrib.auth',
'django.contrib.sessions',
'openid_provider',
Add openid_provider/urls.py to your urlpatterns, e.g.:
urlpatterns = patterns('',
...
url(r'^openid/', include('openid_provider.urls')),
...
)
Run:
python manage.py syncdb
to create required tables to your database.
This application does not include most basic template every django project should have: base.html. You should have base.html file in one of your settings.TEMPLATE_DIRS directories and it should contain 3 base blocks:
- title,
- extrahead,
- content
(see DosAndDontsForApplicationWriters and django template inheritance)
If your base template is named differently you should override openid_provider/base.html to contain something like:
{% extends "your_base_template_name.html" %}
If your base template have different blocks you could easily remap those:
{% block your_content_block_name %}{% block content %}{% endblock %}{% endblock %}