Printing from Grappelli

35 views
Skip to first unread message

Tony Shrimpton

unread,
Aug 23, 2015, 7:21:49 AM8/23/15
to Django Grappelli
Hi Guys,

I finally got around to trying Grappelli today, and so far I really like the features. My only concern is the lack of ability to print pages from the browser (you know, onto dead trees). Printing from the Django admin works OK, but from Grappelli the formatting disappears. So far I've tried Firefox on Linux and Chrome on Windows with the same results.

Am I doing something wrong or will Grappelli not currently format printed pages nicely?

Regards,
Tony

Tony Shrimpton

unread,
Aug 24, 2015, 8:09:18 PM8/24/15
to Django Grappelli
I managed to get it to work by editing a file that I probably shouldn't  ~/python2.7/site-packages/grappelli/templates/admin/base.html

I changed media="screen" to media="all", as suggested in the link below. This made Grappelli pages print much better, as they do in django admin. Is there a reason the Grappelli admin has this media="screen" setting?

http://stackoverflow.com/questions/3384985/how-can-i-print-a-web-page-with-all-its-css-style-attached-to-the-page

Thanks,
Tony

Axel Swoboda

unread,
Aug 25, 2015, 4:53:22 AM8/25/15
to django-g...@googlegroups.com
There are currently no print styles for Grappelli.
Regards, Axel
--

---
You received this message because you are subscribed to the Google Groups "Django Grappelli" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-grappel...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages