5
This package implements an example consumer and server for the Django
6
Python web framework. You can get Django (and learn more about it) at
8
http://www.djangoproject.com/
13
1. Install the OpenID library, version 2.0.0 or later.
15
2. Install Django 0.95.1.
17
If you find that the examples run on even newer versions of
18
Django, please let us know!
20
3. Modify djopenid/settings.py appropriately; you may wish to change
21
the database type or path, although the default settings should be
22
sufficient for most systems.
24
4. In examples/djopenid/ run:
26
python manage.py syncdb
28
5. To run the example consumer or server, run
30
python manage.py runserver PORT
32
where PORT is the port number on which to listen.
34
Note that if you want to try both the consumer and server at the
35
same time, run the command twice with two different values for
38
6. Point your web browser at the server at
40
http://localhost:PORT/
47
The example server and consumer code provided in this package are
48
intended to be instructional in the use of this OpenID library. While
49
it is not recommended to use the example code in production, the code
50
should be sufficient to explain the general use of the library.
52
If you aren't familiar with the Django web framework, you can quickly
53
start looking at the important code by looking in the 'views' modules:
55
djopenid.consumer.views
58
Each view is a python callable that responds to an HTTP request.
59
Regardless of whether you use a framework, your application should
60
look similar to these example applications.
65
Please send bug reports, patches, and other feedback to
67
dev@lists.openidenabled.com