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

TemplateDoesNotExist error due to django.template.loaders.eggs.Loader being deprecated #548

Closed
machakux opened this issue Nov 26, 2016 · 5 comments
Assignees
Labels
stale Stale bot

Comments

@machakux
Copy link

machakux commented Nov 26, 2016

Since Django 1.9 the django.template.loaders.eggs.Loader has been deprecated and it looks like it is not among the default template loaders in Django 1.10.

When installing django-import-export as a dependancy of another package (example; using python setup.py develop on a dependant package) django-import-export gets installed as a zipped egg file which results into a TemplateDoesNotExist unless django.template.loaders.eggs.Loader is added to settings manually.

Will it be useful adding zip_safe = False in setup.py (or something similar) in order to discourage installation of django-import-export as a zipped egg?

@rooterkyberian
Copy link

Adding a example of exception message to make this little easier to google:

TemplateDoesNotExist: admin/import_export/change_list_import.html

@manelclos manelclos self-assigned this Nov 15, 2017
@guyschlider
Copy link

any fix?

bmihelac added a commit to bmihelac/django-import-export that referenced this issue Dec 11, 2017
bmihelac added a commit that referenced this issue Dec 13, 2017
discourage installation as a zipped eggs, thanks @machakux (#548)
@timthelion
Copy link
Contributor

You need to include 'import_export' in your 'INSTALLED_APPS' in settings.py

@stale
Copy link

stale bot commented Feb 11, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Stale bot label Feb 11, 2019
@stale stale bot closed this as completed Feb 18, 2019
@CJohnDesign
Copy link

I'm having the same problem. Working locally but broken in production.

Django==1.11.29
django-import-export==1.2.0

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

No branches or pull requests

6 participants