Py学习  »  问与答

如何跨APP引用模块+Pycharm unresolved reference?

1653600059 • 8 年前 • 2675 次点击  

两个并列的APP: blog 和 web, blog( init.py feeds.py) 和 web( init.py urls.py)

在web中的urls.py 中引用blog的模块feeds,如下, from blog.feeds import LatestBlogs

但是在Pycharm中, 在blog.feeds 中显示红色下划线, 提示: unresolved reference.

问题一:如何方便的在web app中引用另外一个app的模块,才能不显示“unresolved reference”?

谢谢

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/1509
 
2675 次点击