You can configure some of the application behaviour with the
dictionary in your settings file. Currently, the following options are supported:
- ALLOW_GUEST_USERS: Default
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.
- ALLOW_REGISTRATION: Default
Controls whether users can register on their own or if a gym administrator has to create the user accounts.
- DOWNLOAD_INGREDIENTS_FROM: Default
Where to download ingredient images from. Possible values are ‘WGER’ and ‘OFF’. It is recommended to leave the default of WGER as to now hit the Open Food Facts with too many requests
- EMAIL_FROM: Default
wger Workout Manager <firstname.lastname@example.org>
The sender address used for sent emails by the system such as weight reminders
- EXERCISE_CACHE_TTL: Default
Sets how long the overview responses for exercise, exerciseinfo and exercisebaseinfo are cached for. The value is in seconds, so 3600 is one hour.
- MIN_ACCOUNT_AGE_TO_TRUST: Default
Users won’t be able to contribute to exercises if their account age is lower than this amount in days.
- SYNC_EXERCISES_CELERY: Default
Whether to periodically synchronize the exercise database from the default wger instance. Needs celery to be configured.
- SYNC_EXERCISE_IMAGES_CELERY: Default
Whether to periodically synchronize the exercise images from the default wger instance. Needs celery to be configured.
- SYNC_EXERCISE_VIDEOS_CELERY: Default
Whether to periodically synchronize the exercise videos from the default wger instance. Needs celery to be configured.
- USE_CELERY: Default
Whether celery is configured and can be used
- USE_RECAPTCHA: Default
Controls whether a captcha challenge will be presented when new users register.
- WGER_INSTANCE: Default
The wger instance from which commands like exercise synchronization will use to fetch data from.
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.