Opened 6 years ago

Closed 6 years ago

Last modified 4 years ago

#28819 closed Uncategorized (invalid)

Django 2.0 - subclasses of Loader must provide a get_template_sources() method

Reported by: Andy Grabow Owned by: nobody
Component: Uncategorized Version: 2.0
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Andy Grabow)

Hi!

Im using pypugjs (https://github.com/matannoam/pypugjs) to have cleaner templates, but with 2.0 something is broken for me and im note sure what changed, because there is nothing serious in the release notes about the templating system and according to git the loaders/base.py was last touched in January this year.

So why would this break all of a sudden but still work with 1.11.7?
Can someone confirm that there is also a problem with other custom template loaders?

BTW: im using the following project template: https://github.com/kakulukia/django-default-project/ - just updating django to 2.0 inside there will trow the mentioned error.

Change History (4)

comment:1 by Andy Grabow, 6 years ago

Description: modified (diff)

comment:2 by Tim Graham, 6 years ago

Resolution: invalid
Status: newclosed

I answered on the pypugjs issue. In the future, please use our support channels to ask questions.

comment:3 by Andy Grabow, 6 years ago

okay .. its not a bug. I just didnt see deprecation warnings because they are disabled at least in 1.11 :)
good to know!

comment:4 by Pedro Mourelle, 4 years ago

Hi there. I stumbled with similar issue trying to get django-tenant-schemas working. The answer on issue you mentioned above is no longer visible (404 on github), is there any chance to know what was the content of that answer? Also, maybe for the future, would be helpful provide content in here (besides the link for reference) for cases like this one where an external service isn't availabale.

Note: See TracTickets for help on using tickets.
Back to Top