I misesd the return line...
return HttpResponse( t.render( c ) )
On Oct 22, 11:45 am, DjangoFett <[EMAIL PROTECTED]> wrote:
> Sorry for the vagueness in my post.
>
> The problem is that there are no errors. The output is just
> unexpected. The text and code I put into the file which is index's
> extension doesn't show up. I put in a default value between the
> index.html block. Then I've tried to extend the block with an
> alternate text and actual code to draw info from the content system I
> have. In neither case does the alternate text or code show up. Here is
> the code in the views.py that renders the page I'm having problems
> with:
>
> from django.http import HttpResponse
> from django.template import Context, loader
>
> def Index( request ):
>
> t = loader.get_template( 'index.html' )
> c = Context( { 'title': "EasyAutoSales.com Best Car Site Ever", } )
>
> I've tried to use "t = loader.select_template( [ 'index.html',
> 'index_title.html', 'index_body.html' ] )" as well without any luck.
> Thanks for the quick reply!
>
> Randall Prince
>
> On Oct 22, 11:19 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
>
> > What are the outwardly-visible signs of "I can't get any of the extended
> > files to work with index"? From what you've posted I don't know if you are
> > seeing errors about templates files not being found or if you are just
> > seeing unexpected output in your resulting HTML. You might also want to
> > mention what template loaders you have specified, and give a snippet of you
> > view code that is attempting to render the problem tempalte.
>
> > Karen
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---