This project allows a fluxbb/punbb and django applications working together. Features are provided in 3 applications:
The punbb.authent application is a dependencie for the 2 others applications.
It is based on the gravatar (pinax) application
MIDDLEWARE_CLASSES = ( ..., 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'punbb.authent.middleware.PunBBSessionMiddleware', ..., )
AUTHENTICATION_BACKENDS = ( 'punbb.authent.authentication.PunBBShaBackend', ) COOKIE_SEED = 'SAME VALUE AS $COOKIE_SEED IN CONFIG.PHP' PUNBB_COOKIE_NAME = 'punbb_cookie' EXTERN_USER_IS_STAFF = False # if True, PunBB users are django staff users PUNBB_TABLES_PREFIX = 'punbb_' # you should edit this
usage: python manage.py [command]
imports punbb users/groups into django authentication tables.
This command should work in the context of django project that support forums features, like pinax.
It imports forums, categories, posts into django (pinax tribes) tables. The mapping is as follows:
Attention: the import_punbb_users command should be runned before.
example of a sso integration with 2 php applications: