Errors only happen when running django server with pipenv
I have a django project which runs with no errors when run without any virtual enviroments.
But when i run my server inside a after writing the command python -m pipenv shell
then python manage.py runserver
I encounter a few errors such as syntax errors when the syntax is perfectly normal and module import errors which would never occur without using pipenv
errors:
url = f"https://resources.premierleague.com/premierleague/photos/players/110x140/p{photo_id}.png" - invalid syntax
ImportError: No module named 'PIL' (import worked outside of pipenv)