Django forms {% ssi%} doesn't play well
I have a form that works great when it is in its own template, however, when I try to include it in another template using:
{% ssi '/home/.../templates/basic_draft_pick.html' parsed %}
It only displays the submit button. The only thing that has in it the "parent" template - this type of tag <HTML>
, <head>
, <body>
.
I tried the same parent template with a different template {% ssi%} that uses forloop and the text around the forloop displays, but the loop itself does not display.
Can someone please tell me what I am missing?
EDIT:
draft_page.html:
<div id="basic_draft_form">
<form action="" method="POST">{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="Draft" />
</form>
</div>
Parent:
basic_draft_pick.html
{% load ssi from future %}
<!DOCTYPE html>
<html lang="en">
<head>
<title>Draft Page Template</title>
</head>
<body>
{% ssi '/home/.../templates/basic_draft_pick.html' parsed %}
<br />
<br />
</body>
</html>
Note that elipse in the path above is the actual path and I can tell the page is up because the button is displayed correctly.
Thank,
dp
source to share
No one has answered this question yet
Check out similar questions: