oTree Forum >

Django cannot be resolved when deploying to oTree

#1 by t_t_t_535 (edited )

Hi!

I'm in the process of developing my application, and when zipping and deploying to Heroku via oTree hub to test changes, I encounter the following error when resetting the DB or opening the link:

File "/app/survey_le/__init__.py", line 3, in from django.utils.safestring import mark_safe
ModuleNotFoundError: No module named 'django'

It also appears that requirements.txt does not contain Django - how can I resolve this error?

For reference, I am using oTree 5.11.0 and Python 3.10

Thank you!

Write a reply

Set forum username