Is it possible to use Jinja2 Templates? #522
Unanswered
chrisbodon
asked this question in
Q&A
Replies: 1 comment 4 replies
-
sure simply return http response with rendered jinja2 html from django.http import HttpResponse
@api.get('/some')
def some(request):
html = jinja2_redner(...
return HttpResponse(html) |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I installed Jinja2 as its supposed to be installed in a Django project. But I cant render the templates in any way. Its there a exact method to achieve this?
Beta Was this translation helpful? Give feedback.
All reactions