TemplateDoesNotExist error due to django.template.loaders.eggs.Loader being deprecated
See original GitHub issueSince 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:
- Created 7 years ago
- Reactions:2
- Comments:5 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You need to include ‘import_export’ in your ‘INSTALLED_APPS’ in
settings.py
Adding a example of exception message to make this little easier to google: