Using Html FrameSet in Django Template

664 views
Skip to first unread message

Nac Temha

unread,
Apr 23, 2013, 9:59:34 AM4/23/13
to django...@googlegroups.com
Hi,
I want use frameset in template. But I am getting error. How can I use frameset in template?

My example:

fisrt.html
    <html>
        <body>
            template one
        </body>
    </html>

second.html
     <html>
          <body>
              template two
          </body>
      </html>


main.html
    <html>
       <body>
          <frameset cols="20%,80%">
            <frame src="first.html"/>
            <frame src="second.html"/>
          </frameset>
       </body>
     </html>



output is:
    first.html, didn't match any of these.
    second.html
, didn't match any of these.

Page seperated to two page but there are errors in each frame.


Tom Evans

unread,
Apr 23, 2013, 10:24:36 AM4/23/13
to django...@googlegroups.com
On Tue, Apr 23, 2013 at 2:59 PM, Nac Temha <nacct...@gmail.com> wrote:
> Hi,
> I want use frameset in template. But I am getting error. How can I use
> frameset in template?
>
> My example:
> …
>
> output is:
> first.html, didn't match any of these.
> second.html, didn't match any of these.
>
> Page seperated to two page but there are errors in each frame.

Templates are not HTML pages, they are templates that may be processed
by a view in order to return HTML.

If you create a static HTML page, and only put it in your templates
directory, it will not be accessible from the web.

If you want your template to be interpolated (ie template variables
and template tags work), then the template must be served by a view.

If you just want static HTML pages, then you can use the staticfiles app:

https://docs.djangoproject.com/en/1.5/ref/contrib/staticfiles/

Cheers

Tom
Reply all
Reply to author
Forward
0 new messages