Recommended installation environment?

Jeremy Kerr jk at
Tue Nov 2 06:38:43 EST 2010

Hi Wolfgang,

> Now I get this:
> mod_wsgi (pid=24324): Exception occurred processing WSGI script
> '/var/www/patchwork/patchwork.wsgi'. Traceback (most recent call last):
>   File "/usr/lib/python2.6/site-packages/django/core/handlers/",
> line 241, in __call__ response = self.get_response(request)
> ...
>   File
> "/usr/lib/python2.6/site-packages/django/utils/translation/",
> line 176, in translation default_translation =
> _fetch(settings.LANGUAGE_CODE)
>   File
> "/usr/lib/python2.6/site-packages/django/utils/translation/",
> line 159, in _fetch app = import_module(appname)
>   File "/usr/lib/python2.6/site-packages/django/utils/", line
> 35, in import_module __import__(name)
> TemplateSyntaxError: Caught ImportError while rendering: No module named
> registration
> Guess I need to change more magic (to me) strings?

Yep, you'll need to tell sys.path about the registration module.

Unfortunately the one in the upstream mercurial repo doesn't work with 
patchwork, but (as per a recent conversation), I've put the version I'm using 
up at:

or if you'd prefer the same files in a tar.gz:

Unpack and add the python include directory (the one containing the 
'registration' dir) to sys.path, the same way you've done with the patchwork 

For example, if you've unpacked the tarball and got the registration module in 
/var/www/patchwork/lib/python/registration (ie, there's a in that 
directory), then add this line:




More information about the Patchwork mailing list