在linux部署的apache+python, 用manage.py启动就正常,但用apache启动就报错,搞了两天了还是弄不好,求助啊
Environment: Request Method: GET Request URL: http://192.168.3.155:8088/ Django Version: 1.6.5 Python Version: 2.7.6 Installed Applications: ('django.contrib.staticfiles', 'users') Installed Middleware: ('django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware') Traceback: File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response 99. resolver_match = resolver.resolve(request.path_info) File "/usr/local/lib/python2.7/site-packages/django/core/urlresolvers.py" in resolve 337. for pattern in self.url_patterns: File "/usr/local/lib/python2.7/site-packages/django/core/urlresolvers.py" in url_patterns 365. patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module) File "/usr/local/lib/python2.7/site-packages/django/core/urlresolvers.py" in urlconf_module 360. self._urlconf_module = import_module(self.urlconf_name) File "/usr/local/lib/python2.7/site-packages/django/utils/importlib.py" in import_module 40. __import__(name) File "/fosTest/fos/fos/urls.py" in <module> 8. (r'^fos/task/', include('tasks.urls')), File "/usr/local/lib/python2.7/site-packages/django/conf/urls/__init__.py" in include 26. urlconf_module = import_module(urlconf_module) File "/usr/local/lib/python2.7/site-packages/django/utils/importlib.py" in import_module 40. __import__(name) File "/fosTest/fos/tasks/urls.py" in <module> 2. from tasks.views import create,delete,update,queryList,queryOne,queryTimeLineList,queryTimelineOne,createTimeline,robTask File "/fosTest/fos/tasks/views.py" in <module> 7. from editsupport.views import lock_task,release_task File "/fosTest/fos/editsupport/views.py" in <module> 28. from shapely.geometry import mapping File "/usr/local/lib/python2.7/site-packages/Shapely-1.3.3-py2.7-linux-x86_64.egg/shapely/geometry/__init__.py" in <module> 4. from .base import CAP_STYLE, JOIN_STYLE File "/usr/local/lib/python2.7/site-packages/Shapely-1.3.3-py2.7-linux-x86_64.egg/shapely/geometry/base.py" in <module> 9. from shapely.coords import CoordinateSequence File "/usr/local/lib/python2.7/site-packages/Shapely-1.3.3-py2.7-linux-x86_64.egg/shapely/coords.py" in <module> 8. from shapely.geos import lgeos File "/usr/local/lib/python2.7/site-packages/Shapely-1.3.3-py2.7-linux-x86_64.egg/shapely/geos.py" in <module> 57. _lgeos = load_dll('geos_c', fallbacks=['libgeos_c.so.1', 'libgeos_c.so']) File "/usr/local/lib/python2.7/site-packages/Shapely-1.3.3-py2.7-linux-x86_64.egg/shapely/geos.py" in load_dll 53. libname, fallbacks or [])) Exception Type: OSError at / Exception Value: Could not find library geos_c or load any of its variants ['libgeos_c.so.1', 'libgeos_c.so']
http://stackoverflow.com/questions/19742406/could-not-find-library-geos-c-or-load-any-of-its-variants试了,还是不好使uwsgi+nginx方便多了
gunicorn部署比较方便快捷。可以试试哦。
////
gunicorn--worker-class=geventupdate.wsgi:application-b0.0.0.0:8000
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。