Hi, I decided to upgrade Pootle 2.1.6 to the latest version. My Pootle installation is served by Apache mod_wsgi. The installation/upgrade went OK, but I cannot access Pootle any more via Apache.
I have been browsing all of the documentation, but I find that the content about 'Apache and mod_wsgi' is very poor (this is an understatement). First of all, what do I need to put into wsgi.py? There are no leads to any of that information. I found a wsgi.py on the web (see below), but it causes numerous of errors, starting with 'csrf.middleware', which is apparently no longer available in Django 1.4. I have no knowledge of python whatsoever, and most error messages mean completely nothing to me. (Urgent) Help is appreciated. I need my Pootle server to be back online soon.... The wsgi.py that I found on the net: """ WSGI config for Pootle This module contains the WSGI application used by Django's development server and any production WSGI deployments. It should expose a module-level variable named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover this application via the ``WSGI_APPLICATION`` setting. Usually you will have the standard Django WSGI application here, but it also might make sense to replace the whole Django WSGI application with a custom one that later delegates to the Django one. For example, you could introduce WSGI middleware here, or combine a Django application with an application of another framework. """ import os # We defer to a DJANGO_SETTINGS_MODULE already in the environment. This breaks # if running multiple sites in the same mod_wsgi process. To fix this, use # mod_wsgi daemon mode with each site in its own daemon process, or use # os.environ["DJANGO_SETTINGS_MODULE"] = "webapp.settings" os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pootle.settings") # This application object is used by any WSGI server configured to use this # file. This includes Django's development server, if the WSGI_APPLICATION # setting points here. from django.core.wsgi import get_wsgi_application w_application = get_wsgi_application() def application(environ, start_response): os.environ['POOTLE_SETTINGS'] = '/etc/pootle/settings' return w_application(environ, start_response) Latest error message from Apache: [Tue May 28 16:43:00 2013] [error] [client 83.252.45.49] mod_wsgi (pid=7546): Exception occurred processing WSGI script '/var/www/Pootle/wsgi.py'. [Tue May 28 16:43:00 2013] [error] [client 83.252.45.49] Traceback (most recent call last): [Tue May 28 16:43:00 2013] [error] [client 83.252.45.49] File "/var/www/Pootle/wsgi.py", line 31, in application [Tue May 28 16:43:00 2013] [error] [client 83.252.45.49] return w_application(environ, start_response) [Tue May 28 16:43:00 2013] [error] [client 83.252.45.49] File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/wsgi.py", line 219, in __call__ [Tue May 28 16:43:00 2013] [error] [client 83.252.45.49] self.load_middleware() [Tue May 28 16:43:00 2013] [error] [client 83.252.45.49] File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py", line 39, in load_middleware [Tue May 28 16:43:00 2013] [error] [client 83.252.45.49] for middleware_path in settings.MIDDLEWARE_CLASSES: [Tue May 28 16:43:00 2013] [error] [client 83.252.45.49] File "/usr/local/lib/python2.6/dist-packages/django/utils/functional.py", line 184, in inner [Tue May 28 16:43:00 2013] [error] [client 83.252.45.49] self._setup() [Tue May 28 16:43:00 2013] [error] [client 83.252.45.49] File "/usr/local/lib/python2.6/dist-packages/django/conf/__init__.py", line 42, in _setup [Tue May 28 16:43:00 2013] [error] [client 83.252.45.49] self._wrapped = Settings(settings_module) [Tue May 28 16:43:00 2013] [error] [client 83.252.45.49] File "/usr/local/lib/python2.6/dist-packages/django/conf/__init__.py", line 95, in __init__ [Tue May 28 16:43:00 2013] [error] [client 83.252.45.49] raise ImportError("Could not import settings '%s' (Is it on sys.path?): %s" % (self.SETTINGS_MODULE, e)) [Tue May 28 16:43:00 2013] [error] [client 83.252.45.49] ImportError: Could not import settings 'pootle.settings' (Is it on sys.path?): No module named pootle.settings -- With best regards, Edwin Boersma *Fasterminds* /A Marketing Company./ www.fasterminds.com <http://www.fasterminds.com> Phone: +46 (709) 726431 / +46 (520) 212989 Head Office: +46 (31) 3011801 Webpage: www.fasterminds.com <http://www.fasterminds.com> Email: edwin.boer...@fasterminds.com <mailto:edwin.boer...@fasterminds.com> This communication is intended for the person or entity to which it is addressed and may be confidential. Any review, re-transmission or dissemination is prohibited. If you received this transmission in error, please contact the sender then delete this message. This email has been virus checked by the latest virus checking software, however, we advise you to carry out your own virus check as we cannot accept liability for any damage sustained as a result of any software viruses. ------------------------------------------------------------------------------ Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET Get 100% visibility into your production application - at no cost. Code-level diagnostics for performance bottlenecks with <2% overhead Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap1 _______________________________________________ Translate-pootle mailing list Translate-pootle@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/translate-pootle