Hello guys,
I am new to to python,
i keep getting this error message "syntax error "from the wsgi.py file
I have tried to edit the file to python_home to my virtualenv, it still shows the
Can anyone help please
(afo) [root@slave ScrumMaster]# python manage.py runserver 0.0.0.0:8000
Performing system checks…
Testing from slack=================
System check identified no issues (0 silenced).
January 31, 2023 - 06:17:02
Django version 2.1.7, using settings ‘ScrumMaster.settings’
Starting development server at http://0.0.0.0:8000/
Quit the server with CONTROL-C.
Unhandled exception in thread started by <function check_errors..wrapper at 0x7f76df181950>
Traceback (most recent call last):
File “/home/linuxjobber/chatscrum/Django/ScrumMaster/afo/lib/python3.6/site-packages/django/utils/autoreload.py”, line 225, in wrapper
fn(*args, **kwargs)
File “/home/linuxjobber/chatscrum/Django/ScrumMaster/afo/lib/python3.6/site-packages/django/core/management/commands/runserver.py”, line 137, in inner_run
handler = self.get_handler(*args, **options)
File “/home/linuxjobber/chatscrum/Django/ScrumMaster/afo/lib/python3.6/site-packages/django/contrib/staticfiles/management/commands/runserver.py”, line 27, in get_handler
handler = super().get_handler(*args, **options)
File “/home/linuxjobber/chatscrum/Django/ScrumMaster/afo/lib/python3.6/site-packages/django/core/management/commands/runserver.py”, line 64, in get_handler
return get_internal_wsgi_application()
File “/home/linuxjobber/chatscrum/Django/ScrumMaster/afo/lib/python3.6/site-packages/django/core/servers/basehttp.py”, line 45, in get_internal_wsgi_application
return import_string(app_path)
File “/home/linuxjobber/chatscrum/Django/ScrumMaster/afo/lib/python3.6/site-packages/django/utils/module_loading.py”, line 17, in import_string
module = import_module(module_path)
File “/usr/local/lib/python3.6/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 994, in _gcd_import
File “”, line 971, in _find_and_load
File “”, line 955, in _find_and_load_unlocked
File “”, line 665, in _load_unlocked
File “”, line 674, in exec_module
File “”, line 781, in get_code
File “”, line 741, in source_to_code
File “”, line 219, in _call_with_frames_removed
File “/home/linuxjobber/chatscrum/Django/ScrumMaster/ScrumMaster/wsgi.py”, line 26
python_home = /home//chatscrum/Django/ScrumMaster/venv
^
SyntaxError: invalid syntax
^[[B^[[B