question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

30reactions
timthelioncommented, May 23, 2018

You need to include ‘import_export’ in your ‘INSTALLED_APPS’ in settings.py

4reactions
rooterkyberiancommented, May 19, 2017

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

TemplateDoesNotExist: admin/import_export/change_list_import.html
Read more comments on GitHub >

github_iconTop Results From Across the Web

Django "TemplateDoesNotExist " Error but "Using loader ...
All existing template-related settings were deprecated. During the deprecation period, Django will create a backwards-compatible TEMPLATES based ...
Read more >
Django Part 1 - TemplateDoesNotExist - Code with Mosh Forum
I am at Django Fundamentals: 10-Using Templates. ... (Source does not exist) * `django.template.loaders.app_directories.Loader` ...
Read more >
Source code for django.template.loader
This document is for an insecure version of Django that is no longer supported. Please upgrade to a newer release!
Read more >
The Django template language: for Python programmers
'django.template.loaders.app_directories.Loader' if and only if app_dirs is True . These loaders ...
Read more >
template does not exist - Using Django
I was using django 2.0 ,my templates were working fine ,but now i changed the version to 3.0 , it is giving error...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found