这是我的django项目层次结构
project/
apache/ django.wsgi
project/ __init__.py, settings.py, urls.py ..
pages/
__init__.py
widgets.py
website_views.py
services/
__init__.py
apis/
__init__.py
fparser.py
googleData.py
wp.py
...
wservice.py
...
因此,wservice.py
是一个类似于包装的类,它位于apis
模块的所有类之上。它甚至提供了一些它继承的所有类的通用功能。在
wservice.py
FParser
类位于fparser.py
fparser.py
中的方法以这种方式使用上述类。在
from services.wservice import WidgetService
def method1():
obj = WidgetService()
m1 = obj.foo1() # described in FParser class
m2 = obj.foo2() # described in WidgetService class
我正在pages/widgets.py
中使用此WidgetService()。所以,我发现,当我开始使用BeautifulSoup
时,apache服务器没有加载。。它甚至没有显示任何语法错误。在
我甚至在日志文件中看不到任何错误。在
可能出了什么问题???有趣的是,我在开发服务器heroku(gunicorn)中没有遇到过这种错误
这可能是Cython和moduwsgi之间的交互,描述了here,并在一个漂亮的汤上下文here中进行了探索。这里的an earlier question和你的很相似。在
相关问题 更多 >
编程相关推荐