Extending grappelli templates

379 views
Skip to first unread message

Bufke

unread,
Jun 4, 2011, 7:01:07 PM6/4/11
to Django Grappelli
Is it possible to extend them they way one might extend Django admin
templates? Something like

{% extends "change_list.html" %}

I found a way to work around it by using the full path but this
obviously isn't ideal.

{% extends "/usr/local/lib/python2.7/dist-packages/
django_grappelli-2.3.2-py2.7.egg/grappelli/templates/admin/
change_list.html" %}

Daniel Hahler

unread,
Mar 17, 2014, 9:17:36 PM3/17/14
to django-g...@googlegroups.com
Hello,

There is django-app-namespace-template-loader (https://github.com/Fantomas42/django-app-namespace-template-loader), which supports extending via namespaces.


Regards,
Daniel.

patrickk

unread,
Mar 18, 2014, 3:32:26 AM3/18/14
to django-g...@googlegroups.com
there´s nothing special about extending grappelli templates – it works exactly like extending django templates (because it _is_ the same).

cheers,
patrick


Am Sonntag, 5. Juni 2011 01:01:07 UTC+2 schrieb Bufke:
Reply all
Reply to author
Forward
0 new messages