LFC deployment apache and mod_wsgi

27 views
Skip to first unread message

jacques__

unread,
Nov 25, 2010, 4:23:03 PM11/25/10
to django-lfc
Hi, im trying to deploy a LFC site (lfc-installer) on Debian, using
apache and mod_wsgi and i get this error in apache log :

[Thu Nov 25 21:18:38 2010] [error] [client 89.2.112.137] mod_wsgi
(pid=24979): Exception occurred processing WSGI script '/home/lfc-
installer/lfc_project/apache/django.wsgi'., referer: http://mysite.com/
[Thu Nov 25 21:18:38 2010] [error] [client 89.2.112.137] Traceback
(most recent call last):, referer: http://mysite.com/
[Thu Nov 25 21:18:38 2010] [error] [client 89.2.112.137] File "/usr/
lib/python2.5/site-packages/django/core/handlers/wsgi.py", line 230,
in __call__, referer: http://mysite.com/
[Thu Nov 25 21:18:38 2010] [error] [client 89.2.112.137]
self.load_middleware(), referer: http://mysite.com/
[Thu Nov 25 21:18:38 2010] [error] [client 89.2.112.137] File "/usr/
lib/python2.5/site-packages/django/core/handlers/base.py", line 42, in
load_middleware, referer: http://mysite.com/
[Thu Nov 25 21:18:38 2010] [error] [client 89.2.112.137] raise
exceptions.ImproperlyConfigured, 'Error importing middleware %s: "%s"'
% (mw_module, e), referer: http://mysite.com/
[Thu Nov 25 21:18:38 2010] [error] [client 89.2.112.137]
ImproperlyConfigured: Error importing middleware
pagination.middleware: "No module named pagination.middleware",
referer: http://mysite.com/
ns358517:/var/log/apache2#

Any idea of what the problem is here ?

Thanx a lot !

Kai Diefenbach

unread,
Nov 26, 2010, 10:58:19 AM11/26/10
to django-lfc
Hi,
The server is not aware of the pagination application.

Do you have the same problem, when you use the development server?

Kai

jacques__

unread,
Nov 26, 2010, 12:14:52 PM11/26/10
to django-lfc
Kai,

Everything works great on the development server.
There must be something i don't do right in one of my configuration
files (VirtualHost, .wsgi) i guess.



On Nov 26, 4:58 pm, Kai Diefenbach <kai.diefenb...@googlemail.com>
wrote:

Maciej Wisniowski

unread,
Nov 26, 2010, 1:03:30 PM11/26/10
to djang...@googlegroups.com
W dniu 26.11.2010 18:14, jacques__ pisze:

> Kai,
>
> Everything works great on the development server.
> There must be something i don't do right in one of my configuration
> files (VirtualHost, .wsgi) i guess.
This error says that django-pagination (pagination module) can't be
found. Do you have it installed?
If you're using buildout it should be there. If it is installed then
maybye your wsgi script doesn't include proper path to find pagination
module (this is strange as buildout should generate proper wsgi file).

--
Maciej Wisniowski

jacques__

unread,
Nov 27, 2010, 10:56:34 AM11/27/10
to django-lfc
I use buildout and django.pagination is actually there and everything
works fine on development server.
Does buildout generate a wsgi file ? I don't see it. I use one of my
own and this must be the problem. What can i do to make buildout
generate a proper wsgi file ?

Thank you for your time.

js

Maciej Wisniowski

unread,
Nov 27, 2010, 3:32:17 PM11/27/10
to djang...@googlegroups.com
W dniu 27.11.2010 16:56, jacques__ pisze:

> I use buildout and django.pagination is actually there and everything
> works fine on development server.
> Does buildout generate a wsgi file ? I don't see it. I use one of my
> own and this must be the problem. What can i do to make buildout
> generate a proper wsgi file ?
If you're using djangorecipe then it should generate wsgi file for you
if you have wsgi=true. Something like:

(...)
[django]
recipe = djangorecipe
wsgi = true
version = 1.1.1
eggs =
PIL
pysqlite
gunicorn
psycopg2
django-pagination
django-extensions
south
tagging
(...)

--
Maciej Wisniowski

jacques__

unread,
Nov 28, 2010, 9:13:20 AM11/28/10
to django-lfc
Maciej, it works. :D
Thank you so much.

js
Reply all
Reply to author
Forward
0 new messages