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

Minor improvement to template 'extends'? #63

Open
darkpixel opened this issue Feb 24, 2019 · 1 comment
Open

Minor improvement to template 'extends'? #63

darkpixel opened this issue Feb 24, 2019 · 1 comment

Comments

@darkpixel
Copy link

return '{% extends "base.html" %}\n{% load static %}\n';

I think this should generate {% extends "appname/base.html" %} so each app can have it's own base template. In a lot of apps, appname/base.html simply extends base.html, but in several cases apps append or prepend stuff to {% block content %} or include javascript, etc...

@mmcardle
Copy link
Owner

That sounds sensible, will take a look.
I think in order for the download to function straight out of the box, we would need to add a base.html file and an appname/base.html file to the tar file.

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

2 participants