Configuration problems with django and mod_wsgi

落爺英雄遲暮 提交于 2019-12-04 08:59:57

First,

  • Since your admin works, the setting with wsgi is good. Don't bother changing/editing it.

To ensure that it is not a Apache/mod-wsgi setting problem, you can run the development server from the production machine

python manage.py runserver 0:8080

Then point your browser to

http://yoursite.com:8080/

You must see exactly the same behaviour.

Then,

For debugging this problem:

  • On the python shell on your server, try import tagging. Clearly, from your traceback, import tagging is where it is raising an error and thats why, settings cannot be imported.

  • Then, Just delete the package containing tagging, and do a fresh install by the following command, which knows how to install packages, well.

.

sudo pip install django-tagging

Have you read Graham Dumpleton's blog post on Django and WSGI? It does a pretty good job of describing some common configuration problems, and specifically touches on mysite.settings vs. settings.

UPDATE: Please read Graham Dumpleton's excellent comments below.

UPDATE 2: As both Graham and becomingGuru have pointed out, the problem is not with WSGI at all. It is instead a problem with your installation of django-tagging. Take becomingGuru's advice and use pip to install django-tagging.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!