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

Incorporating report within a django template #63

Closed
krishnaw14 opened this issue May 11, 2023 · 2 comments
Closed

Incorporating report within a django template #63

krishnaw14 opened this issue May 11, 2023 · 2 comments

Comments

@krishnaw14
Copy link

Hi,

Thank you for your great work. I had a question.

I am using your report and rendering it with a class-based view as stated in the example in demo website (simple filter). The report looks great.

I already have a website and I am looking to incorporate your report within that website. My website has a header and footer so I want the report to be displayed between the headers and footer. Can I add a django template code like {% extends 'base.html' %} somewhere in SlickReportView class or can I display the report within {% block content %} {% endblock %} or is there a way to render the report inside my already defined Django template?

@RamezIssac
Copy link
Owner

Yeah .. SlickReprotView is a FormView child , and so you have a template_name which you can set (among other FormView/CBV properties and methods)

You can check the slick reporting templates https://github.com/ra-systems/django-slick-reporting/tree/develop/slick_reporting/templates/slick_reporting , you can code then in your project , customize them to as you want.

@krishnaw14
Copy link
Author

Thank you for your reply. I understand. I will try to do that.

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