Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Django 1.9 compatibility #11

Closed
agateblue opened this issue Feb 1, 2016 · 5 comments
Closed

Django 1.9 compatibility #11

agateblue opened this issue Feb 1, 2016 · 5 comments

Comments

@agateblue
Copy link

On Django 1.9, it seems django.template.base.TemplateDoesNotExist as been removed, which cause template rendering to fail with the following stack trace :

"""Template loader for app-namespace"""
   import os
   import sys
   from importlib import import_module
   from collections import OrderedDict

   import six

   from django.conf import settings
   from django.utils._os import safe_join
   from django.utils.functional import cached_property
>   from django.template.base import TemplateDoesNotExist
E   ImportError: cannot import name 'TemplateDoesNotExist'

.tox/py34/lib/python3.4/site-packages/app_namespace/loader.py:12: ImportError

I'll make a pull request to solve this.

agateblue pushed a commit to agateblue/django-app-namespace-template-loader that referenced this issue Feb 1, 2016
agateblue pushed a commit to agateblue/django-app-namespace-template-loader that referenced this issue Feb 1, 2016
@Fantomas42
Copy link
Owner

Hello, thanks for your contribution,

but support for Django 1.9, is a little bit more complicated.
I'm currently working a branch to support it.

https://github.com/Fantomas42/django-app-namespace-template-loader/compare/feature/django-1.9

Please use this branch if possible.

@headcrabz
Copy link

Hi Fantomas42 , is the dev for django 1.9+ complete ?

@patroqueeet
Copy link

I'd be glad about a stable release too

@Fantomas42
Copy link
Owner

Hello, sorry for the late release,

but the v0.4 compatible with Django 1.8 and 1.9 is now released on Pypi.

@tbodine88
Copy link

Note that the missing code is simply:

'class TemplateDoesNotExist(Exception):
   pass`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants