I downloaded a code from github and trying to run it as it is by running command in git bash: python manage.py runserver
But I am experiencing this error:
DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
Have made changes to my manage.py file as suggested in this answer How to use collections.abc from both Python 3.8+ and Python 2.7 but still facing the same error.
import os
import sys
try:
from collections.abc import Callable
except ImportError:
from collections import Callable
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "app.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are you sure it's installed and "
"available on your PYTHONPATH environment variable? Did you "
"forget to activate a virtual environment?"
) from exc
execute_from_command_line(sys.argv)