I have this file structure in Django project:
project
├── app
└── __init__.py
views.py
...
tasks
└── __init__.py
server_tasks.py
In views.py I tried to import project/app/tasks/server_tasks.py by typing following statements
from tasks import server_tasks
or
from tasks.server_tasks import *
And python3 manage.py runserver gives me following output
File "/home/user-unix/python/django_projects/project/app/views.py", line 6, in <module>
from tasks import server_tasks
ModuleNotFoundError: No module named 'tasks'
How can I import server_tasks.py into views.py?
Here is a github repository containing a project
I tried answers from very similar question on stackoverflow but it doesn't work for me.