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?



<div id="basic_draft_form">

        <form action="" method="POST">{% csrf_token %}
            {{ form.as_p }}
        <input type="submit" value="Draft" />





{% load ssi from future %}
<!DOCTYPE html>

<html lang="en">

        <title>Draft Page Template</title>

        {% ssi '/home/.../templates/basic_draft_pick.html' parsed %}

        <br />
        <br />              



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.




source to share

All Articles