PyBBM required next packages to be installed:
All packages can be installed as a dependency for PyBBM if you install it with pip or easy_install:
pip install pybbm
Add following apps to your INSTALLED_APPS to enable pybbm and required applications.
- pybb
- pytils
- sorl.thumbnail
- pure_pagination
INSTALLED_APPS = (
....
'pybb',
'pytils',
'sorl.thumbnail',
'pure_pagination',
...
)
It is highly recommended that you also enable south application for properly migrate future updates
Add pybb.context_processors.processor to your settings.CONTEXT_PROCESSORS:
CONTEXT_PROCESSORS = (
...
'pybb.context_processors.processor',
...
)
Add pybb.middleware.PybbMiddleware to your settings.MIDDLEWARE_CLASSES:
MIDDLEWARE_CLASSES = (
...
'pybb.middleware.PybbMiddleware',
...
)
Put include(‘pybb.urls’, namespace=’pybb’)) into main project urls.py file:
urlpatterns = patterns('',
....
(r'^forum/', include('pybb.urls', namespace='pybb')),
....
)
If you have no site profile, add next line to your settings:
AUTH_PROFILE_MODULE = 'pybb.Profile'
If you have custom site profile check that it inherits from pybb.models.PybbProfile or contains all field from this class.
If you first time install pybbm and have south installed, run:
python manage.py syncdb --all
python manage.py migrate pybb --fake
or just:
python manage.py syncdb
if south is not installed.
Run migrate command to update pybbm or if you migrate from pybb to pybbm:
python manage.py migrate
If you have south enabled and use profile class under south control (like ‘pybb.Profile’) profile for superuser will not be created after syncdb/migrate. It will be created during first login of this user to site by pybb.middleware.PybbMiddleware.
Check that: