Hello. As per the title, I'm trying to launch my app in development on PythonAnywhere. I'm getting an Unhandled Exception error but when I look into my error log, I don't receive any errors.
Hello. As per the title, I'm trying to launch my app in development on PythonAnywhere. I'm getting an Unhandled Exception error but when I look into my error log, I don't receive any errors.
I see a bunch of errors in your error log, could you try looking again?
Thank you Sir. I don't know why the error log was not updating yesterday. Anyway, I'm getting an import error, failing to import django_filters. I made sure to pip install django-filter and it works well locally, do you have any idea what could be the issue?
Make sure you've installed the package for the same Python version you're app is running. There are multiple versions of Python installed, so you need to explicitly point to the right version, eg. using pip3.8
to install packages for Python 3.8. If you create a virtual env, make sure, you've created it for the correct Python version as well.
Worked like a dream. Thank you!