我想在django app中导入我的python文件
import myfile
dct = myfile.myfunc()
def index(request):
context = dct
return render(request, 'myapp/index.html', context)
>>>ModuleNotFoundError: No module named
在文件夹中添加空的__init__.py
文件,其中为myfile.py