Hi, I am trying to import a python file called myrules.py in the subdirectory rules into my views.py file. (Subdirectory in the same directory as the views.py file)
I have used;
import rules.myrules
But I get the following Error;
ModuleNotFoundError at /
No module named 'rules'
Request Method: GET
Request URL: https://medai.pythonanywhere.com/
Django Version: 3.2.3
Exception Type: ModuleNotFoundError
Exception Value:
No module named 'rules'
Exception Location: /home/MedAI/mysite/mysite/views.py, line 5, in <module>
Python Executable: /usr/local/bin/uwsgi
Python Version: 3.7.10
How can I rectify this? Many thanks!