> Hey Sean,
>
> I suspect the problem is in how you're loading the template and
> rendering it. Can you paste us the code in your view that loads the
> template, passes it a context and renders it? If you're not sure what
> code I'm talking about, just paste us your whole view, if that's
> possible.
>
> Adrian


Wow! Just woke up over here in Japan to find that you guys have been  
hard at work solving my problem  while I slept -- unbelievable!

I now suspect that my crappy code to map urls to simple templates for  
static pages is the likely culprit. I started with  
verdjnlib.templatepages and tried to distill that for my needs --  
perhaps I missed something important.

Here's all my template code:

--- templates/index.html ---
http://rafb.net/paste/results/X5LCeK54.html

--- templates/base.html ---
http://rafb.net/paste/results/dDiSNA65.html

...and here's my crufty url mapping app which is imported as an  
external app

--- modulalib/urls.py ---
http://rafb.net/paste/results/nwh01983.html

--- modulalib/views.py ---
http://rafb.net/paste/results/fzWg1g26.html

Thanks again for your help everyone!

Sean



On Aug 17, 2006, at 11:45 PM, Adrian Holovaty wrote:

>
> On 8/17/06, Sean Schertell <[EMAIL PROTECTED]> wrote:
>> I'm trying to get my first django project off the ground but I've hit
>> snag that I can't seem to get around. I've made a base.html template
>> and an index.html template that extends the base (pretty standard
>> stuff I think).
>>
>> But django barfs up this error:
>> -----------------------------
>> AttributeError at /
>> 'NoneType' object has no attribute 'push'
>> -----------------------------
>
> Hey Sean,
>
> I suspect the problem is in how you're loading the template and
> rendering it. Can you paste us the code in your view that loads the
> template, passes it a context and renders it? If you're not sure what
> code I'm talking about, just paste us your whole view, if that's
> possible.
>
> Adrian
>
> -- 
> Adrian Holovaty
> holovaty.com | djangoproject.com
>
> >
>
>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to