Pythonanywhere - ModuleNotFoundError: No module named 'posthog'

I'm uploading my django web app project to pythonanywhere and I'm getting this error : ModuleNotFoundError: No module named 'posthog'

I tried following the pythonanywhere.com page that talks about debugging import error issues but I'm confused on how to go about it

wsgi:

import os
import sys

path = '/home/Shalz/UniHustle_back_iv'
if path not in sys.path:
    sys.path.append(path)

os.environ['DJANGO_SETTINGS_MODULE'] = 'unihustle.settings'

from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()

in my settings.py file, I have import posthog

posthog does not appear in my requirements.txt file though, despite installing it via my project terminal.

Вернуться на верх