Table Of Contents

Previous topic

3. Applications

Next topic

3.2. calendrier – Calendar views

This Page

Languages

Previous versions

1.2
1.1

3.1. badges -

Warning

This application is still in early development stage.

This application add a “BADGES” tab on user profile.

3.1.1. settings.py

To enable the badges application, it must be enabled in the settings file: add 'openPLM.apps.badges' to the list of installed applications (INSTALLED_APPS). You must also add a middleware: add 'openPLM.apps.badges.middleware.GlobalRequest' to the MIDDLEWARE_CLASSES setting (after the ProfileLocaleMiddleware).

3.1.2. Synchronizing the database

Run ./manage.py migrate badges.

3.1.3. Collecting static files

Run ./manage.py collectstatic.

3.1.4. Award badges

If you already had installed an openPLM, you can award badges to all users according to what they have done before the application has been installed.

For that run ./manage.py award_badges.

3.1.5. Testing

Log in openPLM , go to your profile (then tab “BADGES”) and check if you have won a badge.

If you didn’t get any badge, fill your profile (first name, last name and email), you should get the Autobiographer badge (one of the easiest).

From the “BADGES” tab and pages which describe the badges, you can reach a list of all available badges.