I'm trying to import a python file from another python file in Django. There is a function I want to call from the other file, but every time I import the file I get an error.
Traceback (most recent call last):
File "ams/faces-train.py", line 6, in <module>
from ams.conn import conn
ModuleNotFoundError: No module named 'ams'
What the problem is? I have tried everything but I have not been able to fix it.