File: README

package info (click to toggle)
python3-openid 3.0.2%2Bgit20140828-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,672 kB
  • ctags: 2,679
  • sloc: python: 17,137; xml: 234; sh: 15; makefile: 4
file content (54 lines) | stat: -rw-r--r-- 1,490 bytes parent folder | download
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
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

 2. Install Django >= 1.5 (with Python 3 support)

 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.