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_GUEST_USERSDefault
TrueControls 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.
ALLOW_REGISTRATIONDefault
TrueControls whether users can register on their own or if a gym administrator has to create the user accounts.
DOWNLOAD_INGREDIENTS_FROMDefault
WGERWhere to download ingredient images from. Set to ‘None’ to deactivate.
EMAIL_FROMDefault
wger Workout Manager <wger@example.com>The sender address used for sent emails by the system such as weight reminders
EXERCISE_CACHE_TTLDefault
3600(one hour)Sets how long the overview responses for exercise, exerciseinfo and exercisebaseinfo are cached for.
INGREDIENT_CACHE_TTLDefault
604800(one week)Sets how long the overview responses for ingredients are cached for.
ROUTINE_CACHE_TTLDefault
4 * 604800(four weeks)Sets how long the overview responses for routines are cached for.
MIN_ACCOUNT_AGE_TO_TRUSTDefault
21Users won’t be able to contribute to exercises if their account age is lower than this amount in days.
SYNC_EXERCISES_CELERYDefault
FalseWhether to periodically synchronize the exercise database from the default wger instance. Needs celery to be configured.
SYNC_EXERCISE_IMAGES_CELERYDefault
FalseWhether to periodically synchronize the exercise images from the default wger instance. Needs celery to be configured.
SYNC_EXERCISE_VIDEOS_CELERYDefault
FalseWhether to periodically synchronize the exercise videos from the default wger instance. Needs celery to be configured.
USE_CELERYDefault
False.Whether celery is configured and can be used
USE_RECAPTCHADefault
False.Controls whether a captcha challenge will be presented when new users register.
WGER_INSTANCEDefault
https://wger.de.The wger instance from which commands like exercise synchronization will use to fetch data from.
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.