python manage.py runserver 0.0.0.0:8000 Traceback (most recent call last): File "manage.py", line 10, in <module> execute_from_command_line(sys.argv) File "/opt/mailman/venv-3.6/lib64/python3.6/site-packages/Django-2.2.12-py3.6.egg/django/core/management/__init__.py", line 381, in execute_from_command_line utility.execute() File "/opt/mailman/venv-3.6/lib64/python3.6/site-packages/Django-2.2.12-py3.6.egg/django/core/management/__init__.py", line 325, in execute settings.INSTALLED_APPS File "/opt/mailman/venv-3.6/lib64/python3.6/site-packages/Django-2.2.12-py3.6.egg/django/conf/__init__.py", line 79, in __getattr__ self._setup(name) File "/opt/mailman/venv-3.6/lib64/python3.6/site-packages/Django-2.2.12-py3.6.egg/django/conf/__init__.py", line 66, in _setup self._wrapped = Settings(settings_module) File "/opt/mailman/venv-3.6/lib64/python3.6/site-packages/Django-2.2.12-py3.6.egg/django/conf/__init__.py", line 157, in __init__ mod = importlib.import_module(self.SETTINGS_MODULE) File "/usr/lib64/python3.6/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 994, in _gcd_import File "<frozen importlib._bootstrap>", line 971, in _find_and_load File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 665, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 674, in exec_module File "<frozen importlib._bootstrap_external>", line 781, in get_code File "<frozen importlib._bootstrap_external>", line 741, in source_to_code File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "/opt/mailman/mailman-suite/mailman-suite_project/settings.py", line 286 EMAIL_HOST = ‘mail.somedomain.org’ ^ SyntaxError: invalid character in identifier
Mark - I don't want to complain all the time, but it is a nightmare to install and setup mailman3. Any idea why I am getting the above message?
Thank You,
Ralf Wiegand
On 4/28/20 1:05 PM, Ralf Wiegand wrote:
python manage.py runserver 0.0.0.0:8000 Traceback (most recent call last): ... File "/opt/mailman/mailman-suite/mailman-suite_project/settings.py", line 286 EMAIL_HOST = ‘mail.somedomain.org’ ^ SyntaxError: invalid character in identifier
The characters in the above that look like ascii apostrophe/single-quote characters are actually unicode right-single-quote characters.
I.e., it needs to be
EMAIL_HOST = 'mail.somedomain.org'
not
EMAIL_HOST = ‘mail.somedomain.org’
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Mark Sapiro
-
Ralf Wiegand