Settings

You can configure some of the application behaviour with the WGER_SETTINGS dictionary in your settings file. Currently, the following options are supported:

ALLOW_REGISTRATION: Default True.

Controls whether users can register on their own or if a gym administrator has to create the user accounts.

ALLOW_GUEST_USERS: Default True.

Controls whether users can use the site as a guest user or if an administrator has to create the user accounts, as with the option above.

USE_RECAPTCHA: Default False.

Controls whether a captcha challenge will be presented when new users register.

ALLOW_UPLOAD_VIDEOS: Default False.

Controls whether it is allowed to upload videos to exercises in the instance. See section Videos for more information.

EMAIL_FROM: Default wger Workout Manager <wger@example.com>

The sender address used for sent emails by the system such as weight reminders

EXERCISE_CACHE_TTL: Default 3600

Sets how long the overview responses for exercise, exerciseinfo and exercisebaseinfo are cached for. The value is in seconds, so 3600 is one hour.

Note

If you want to override a default setting, don’t overwrite all the dictionary but only the keys you need, e.g. WGER_SETTINGS['foo'] = 'bar'. This avoids problems when new keys are added in the global settings.

Set the URL for your site in the table django_site. This is only used e.g. in the password reset emails.