Missing basedir/apps in sys.path?
guilherme.salgado at linaro.org
Thu Feb 3 06:16:10 EST 2011
I've just followed the instructions to deploy patchwork and everything
seemed to work fine but when I went to /admin on my browser I got the
TemplateSyntaxError: Caught ImportError while rendering: No module named patchwork
Which seems to happen because templates reference the patchwork module
directly (e.g. 'patchwork.views.') but in patchwork.wsgi only the
basedir is added to sys.path, so you'd in fact have to reference that
using 'apps.patchwork.views', so I was wondering if the patch below
would make sense?
@@ -11,6 +11,7 @@ import sys
basedir = os.path.dirname(__file__)
os.environ['DJANGO_SETTINGS_MODULE'] = 'apps.settings'
Guilherme Salgado <https://launchpad.net/~salgado>
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 198 bytes
Desc: This is a digitally signed message part
More information about the Patchwork