~gary/python-openid/python-openid-2.2.1-patched

« back to all changes in this revision

Viewing changes to examples/djopenid/README

  • Committer: Launchpad Patch Queue Manager
  • Date: 2007-11-30 02:46:28 UTC
  • mfrom: (1.1.1 pyopenid-2.0)
  • Revision ID: launchpad@pqm.canonical.com-20071130024628-qktwsew3383iawmq
[rs=SteveA] upgrade to python-openid-2.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
DJANGO EXAMPLE PACKAGE
 
3
======================
 
4
 
 
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
 
7
 
 
8
  http://www.djangoproject.com/
 
9
 
 
10
SETUP
 
11
=====
 
12
 
 
13
 1. Install the OpenID library, version 2.0.0 or later.
 
14
 
 
15
 2. Install Django 0.95.1.
 
16
 
 
17
    If you find that the examples run on even newer versions of
 
18
    Django, please let us know!
 
19
 
 
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.
 
23
 
 
24
 4. In examples/djopenid/ run:
 
25
 
 
26
    python manage.py syncdb
 
27
 
 
28
 5. To run the example consumer or server, run
 
29
 
 
30
    python manage.py runserver PORT
 
31
 
 
32
    where PORT is the port number on which to listen.
 
33
 
 
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
 
36
    PORT.
 
37
 
 
38
 6. Point your web browser at the server at
 
39
 
 
40
    http://localhost:PORT/
 
41
 
 
42
    to begin.
 
43
 
 
44
ABOUT THE CODE
 
45
==============
 
46
 
 
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.
 
51
 
 
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:
 
54
 
 
55
  djopenid.consumer.views
 
56
  djopenid.server.views
 
57
 
 
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.
 
61
 
 
62
CONTACT
 
63
=======
 
64
 
 
65
Please send bug reports, patches, and other feedback to
 
66
 
 
67
  dev@lists.openidenabled.com