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