wger-project / docker

Production...ish docker-compose image for wger
GNU Affero General Public License v3.0
125 stars 43 forks source link

settings.py overwritten by settings_global #34

Open deboy69 opened 1 year ago

deboy69 commented 1 year ago

Needing some help with the latest update and migration. Everything went well.

My only issue is that the settings.py or prod.env is being overwritten or not applied by settings.global.

Any insight on why or what I can do to fix this?

Thanks

rolandgeider commented 1 year ago

Do you mean that the settings you are using in the env file are not being used?

deboy69 commented 1 year ago

correct but think it may be related to your bug report also. Noticed emailes are not being sent through even though it was showing as sent and pything sendtestemail shows completed. Think it has to

if DEBUG: EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' if os.environ.get("ENABLE_EMAIL"): EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'

somewhere debug is on and just sends it to console. Just guessing though.

rolandgeider commented 1 year ago

mhhh, strange

I wanted to rework the settings used in the docker image so that it's clearer which ones are changed and which are still the default