Well, I think I can find a solution. I'm new to Django, so I don’t know if this can be a good way if it breaks some normal rules, if it opens some kind of security hole, or, if just, there are other best methods, but it works anyway ...
So, I created the Calendar application , and my Show application . I want to Show in order to call up the Calendar , display its template and insert the result inside the Show template .
For this, I used TemplateResponseinstead HttpResponseof the calendar side:
from django.template.response import TemplateResponse
def render_calendar(request):
return TemplateResponse(request, 'calendar/calendar-template.html', {})
"" TemplateResponse, render() , , rendered_content :
from calendar import views
def show(request, show_id):
cal = views.render_calendar(request)
cal.render()
context = {"calendar": cal.rendered_content}
return render_to_response("show/show-template.html", context)
!