Created: 2011-07-10 12:32
Updated: 2017-07-26 20:35

This is an example of using the following django applications:

The django-openid-auth is used along with openid-selector ( to display a nice UI for the user to select a OpenID Provider.

Changes made

  1. Modified django-openid-auth's templates to include openid-selector so you get a nice ui that has the icons for various openid providers.
  2. Manipulated django-profiles so that once a openid is done for a user, you have the ability to add/edit profiles. The application will allow you to create a UserProfile if one is not found and edit it if its found. The UserProfile in this example contains 2 fields (favourite_pet and favourite_number).

Trying out the example

  1. git clone git://
  2. This is much easier done if you are using pip as Ive packaged the above dependencies using pip. If you are using pip, just do a pip install -r requirements.txt
  3. python syncdb # to build the built-in sqlite schema
  4. python runserver
  5. Enjoy!

Application Screens

Try logging into http://localhost:8000. This should take you to a openid selector screen where you can select a openid. Once you are authenticated, you will be redirected to a front page where you can create/edit your profile. Completing the form (which has a validation to accept 4 or greater digits for favourite_number) should take you to a profile detail page where some details are displayed.


Credits go to the authors of the following packages

  • Django
  • django-openid-auth
  • python-openid
  • django-profiles
  • openid-selector
Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more