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/wsgi.py", > line 241, in __call__ response = self.get_response(request) > ... > File > "/usr/lib/python2.6/site-packages/django/utils/translation/trans_real.py", > line 176, in translation default_translation = > _fetch(settings.LANGUAGE_CODE) > File > "/usr/lib/python2.6/site-packages/django/utils/translation/trans_real.py", > line 159, in _fetch app = import_module(appname) > File "/usr/lib/python2.6/site-packages/django/utils/importlib.py", 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: http://ozlabs.org/~jk/tmp/python-django-registration_0.7-2_all.deb or if you'd prefer the same files in a tar.gz: http://ozlabs.org/~jk/tmp/python-django-registration_0.7-2_all.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 module: For example, if you've unpacked the tarball and got the registration module in /var/www/patchwork/lib/python/registration (ie, there's a models.py in that directory), then add this line: sys.path.append('/var/www/patchwork/lib/python/') Cheers, Jeremy _______________________________________________ Patchwork mailing list [email protected] https://lists.ozlabs.org/listinfo/patchwork
