-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
email error #40
Comments
There was another issue about the EMAIL_FROM key not being used, this is probably something related to that |
wger | WGER_SETTINGS['EMAIL_FROM'] = **f'**wger Workout Manager <{env.str("FROM_EMAIL")}>' removed f in the settings.py. However it wont start to get into the container so I needed to turn on Django debug to get past the error. Not sure if it was a new container pull that had the fix in it or this actually fixed it. But got it up and running with two nginx containers. (main nginx and wger nginx) |
mhhhh, this works fine here |
Exact same error here : My prod.env:
|
I will try to see if I can get this to fail on my machine |
I did a workaround by giving up on the prod.env and putting all the environment variables directly in my docker compose. |
but that shouldn't make any difference, it's just more convenient to use the file 🤔 |
wger | Traceback (most recent call last):
wger | File "/usr/local/lib/python3.10/dist-packages/environ/environ.py", line 403, in get_value
wger | value = self.ENVIRON[var_name]
wger | File "/usr/lib/python3.10/os.py", line 679, in getitem
wger | raise KeyError(key) from None
wger | KeyError: 'FROM_EMAIL'
wger |
wger | The above exception was the direct cause of the following exception:
wger |
wger | Traceback (most recent call last):
wger | File "/usr/local/bin/invoke", line 8, in
wger | sys.exit(program.run())
wger | File "/usr/local/lib/python3.10/dist-packages/invoke/program.py", line 384, in run
wger | self.execute()
wger | File "/usr/local/lib/python3.10/dist-packages/invoke/program.py", line 569, in execute
wger | executor.execute(*self.tasks)
wger | File "/usr/local/lib/python3.10/dist-packages/invoke/executor.py", line 129, in execute
wger | result = call.task(*args, **call.kwargs)
wger | File "/usr/local/lib/python3.10/dist-packages/invoke/tasks.py", line 127, in call
wger | result = self.body(*args, **kwargs)
wger | File "/home/wger/src/wger/tasks.py", line 91, in bootstrap
wger | setup_django_environment(settings_path)
wger | File "/home/wger/src/wger/tasks.py", line 345, in setup_django_environment
wger | django.setup()
wger | File "/usr/local/lib/python3.10/dist-packages/django/init.py", line 19, in setup
wger | configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
wger | File "/usr/local/lib/python3.10/dist-packages/django/conf/init.py", line 82, in getattr
wger | self._setup(name)
wger | File "/usr/local/lib/python3.10/dist-packages/django/conf/init.py", line 69, in _setup
wger | self._wrapped = Settings(settings_module)
wger | File "/usr/local/lib/python3.10/dist-packages/django/conf/init.py", line 170, in init
wger | mod = importlib.import_module(self.SETTINGS_MODULE)
wger | File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
wger | return _bootstrap._gcd_import(name[level:], package, level)
wger | File "", line 1050, in _gcd_import
wger | File "", line 1027, in _find_and_load
wger | File "", line 1006, in _find_and_load_unlocked
wger | File "", line 688, in _load_unlocked
wger | File "", line 883, in exec_module
wger | File "", line 241, in _call_with_frames_removed
wger | File "/home/wger/src/settings.py", line 90, in
wger | WGER_SETTINGS['EMAIL_FROM'] = f'wger Workout Manager <{env.str("FROM_EMAIL")}>'
wger | File "/usr/local/lib/python3.10/dist-packages/environ/environ.py", line 213, in str
wger | value = self.get_value(var, cast=str, default=default)
wger | File "/usr/local/lib/python3.10/dist-packages/environ/environ.py", line 407, in get_value
wger | raise ImproperlyConfigured(error_msg) from exc
wger | django.core.exceptions.ImproperlyConfigured: Set the FROM_EMAIL environment variable
The text was updated successfully, but these errors were encountered: