[google-appengine] Re: Django "Block" feature and Google App Engine

2009-03-19 Thread djidjadji

and you have to rename your main.html to base.html

2009/3/10 kd :
>
> Hi Morten,
>
> Not sure if it's a typo or not, but the issue might be the template
> you're rendering with MainHandler. Try template.render
> ('content.html',''))
>
> On Mar 9, 12:05 am, Morten Bruhn  wrote:
>> Hi Guys,
>>
>> First of all I am a newbie, but I still hope you can help me...
>>
>> I have created an app with a template - this works! :-)
>> 
>> class MainHandler(webapp.RequestHandler):
>>
>>   def get(self):
>>     self.response.out.write(
>>                 template.render('base.html',''))
>> 
>>
>> In my main.html I have the following:
>> 
>> 
>>         {% block content %}
>>
>>         {% endblock %}
>> 
>> 
>>
>> And then ind my content.html i have:
>> 
>> {% extends 'base.html' %}
>> {% block content %}
>> som HTML
>> {% endblock %}
>> 
>>
>> But it just won't show up on my base.html page... Why why??
>>
>> Any ideas???
>>
>> Kind Regards
>>
>> // Morten
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Django "Block" feature and Google App Engine

2009-03-10 Thread kd

Hi Morten,

Not sure if it's a typo or not, but the issue might be the template
you're rendering with MainHandler. Try template.render
('content.html',''))

On Mar 9, 12:05 am, Morten Bruhn  wrote:
> Hi Guys,
>
> First of all I am a newbie, but I still hope you can help me...
>
> I have created an app with a template - this works! :-)
> 
> class MainHandler(webapp.RequestHandler):
>
>   def get(self):
>     self.response.out.write(
>                 template.render('base.html',''))
> 
>
> In my main.html I have the following:
> 
> 
>         {% block content %}
>
>         {% endblock %}
> 
> 
>
> And then ind my content.html i have:
> 
> {% extends 'base.html' %}
> {% block content %}
> som HTML
> {% endblock %}
> 
>
> But it just won't show up on my base.html page... Why why??
>
> Any ideas???
>
> Kind Regards
>
> // Morten

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---