My apologies, I was wrong earlier - looks like this code's really broken in 1.8. I'm not across so I'm not sure why, but I'll open an issue for it.
Thanks a lot. On Thu, Apr 9, 2015 at 2:34 PM, Graham <greenbay.gra...@gmail.com> wrote: > Hi Stephen > I think I am using the up to date version of the code, namely > > try: > # Django >= 1.8 > find_template_loader = context.engine.find_template_loader > except AttributeError: > # Django <= 1.7 > print ("hello") > from django.template.loaders import find_template_loader > > prints hello > > This does not fit the logic of the comments because the Django version is > 1.8 > > g > > > > On 09/04/15 15:59, Stephen McDonald wrote: > >> That was resolved a few months ago: >> >> https://github.com/stephenmcd/mezzanine/commit/ >> a50de50699bb6a24bfb5f118449991aa7608b426 >> >> It looks like you're using the current 3.1.10 release of Mezzanine, >> rather than the development branch from Github. >> >> On 4/9/15, Graham Oliver <greenbay.gra...@gmail.com> wrote: >> >>> Django 1.8 >>> Python 3.4.3 >>> >>> Accessing the admin >>> >>> ImportError at /admin/login/ >>> >>> cannot import name 'find_template_loader' >>> >>> Request Method: GET Request URL: >>> http://127.0.0.1:8000/admin/login/?next=/admin/ Django Version: 1.8 >>> Exception >>> Type: ImportError Exception Value: >>> >>> cannot import name 'find_template_loader' >>> >>> Exception Location: >>> /home/graham/.pyenv/versions/py3.4.3-dj1.8/lib/python3.4/ >>> site-packages/mezzanine/template/loader_tags.py >>> >>> in find_template, line 62 Python Executable: >>> /home/graham/.pyenv/versions/py3.4.3-dj1.8/bin/python Python Version: >>> 3.4.3 >>> Python >>> Path: >>> >>> ['/home/graham/Dropbox/mp-soul-2', >>> '/home/graham/.pyenv/versions/3.4.3/lib/python34.zip', >>> '/home/graham/.pyenv/versions/3.4.3/lib/python3.4', >>> '/home/graham/.pyenv/versions/3.4.3/lib/python3.4/plat-linux', >>> '/home/graham/.pyenv/versions/3.4.3/lib/python3.4/lib-dynload', >>> '/home/graham/.pyenv/versions/py3.4.3-dj1.8/lib/python3.4/ >>> site-packages', >>> '/home/graham/Dropbox'] >>> >>> Server time: Thu, 9 Apr 2015 15:19:14 +1200 >>> Error during template rendering >>> >>> In template >>> /home/graham/Dropbox/mp-soul-2/soulapp2/templates/admin/base_site.html, >>> error at line *1* >>> cannot import name 'find_template_loader' 1 {% overextends >>> "admin/base_site.html" %} >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Mezzanine Users" group. >>> To unsubscribe from this group and stop receiving emails from it, send an >>> email to mezzanine-users+unsubscr...@googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. >>> >>> >> > -- > You received this message because you are subscribed to the Google Groups > "Mezzanine Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to mezzanine-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Stephen McDonald http://jupo.org -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.