python - django's views.py fails to introduce module
女神的闺蜜爱上我
女神的闺蜜爱上我 2017-06-12 09:28:03
0
1
802
from django.shortcuts import render
from django.http import HttpResponse
from django.template import Template, Context
from pic_fin import *

Error reporting

No module named 'pic_fin'

pin_fin.py is placed in the same directory as views.py.
The previous project used python2.7, and the project did not report any errors. Now for some reasons, I changed it to python3.5, and then I got an error.

女神的闺蜜爱上我
女神的闺蜜爱上我

reply all(1)
淡淡烟草味

Try changing to

from . import pic_fin 或者
from .pic_fic import *
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!