Re: Help me understand the error of my ways...

2007-09-07 Thread Atendo
Still fuzzy to me. :) Alas... thanks for your help anyway! I did end up using a different approach and have been successful (so far) with it. I've put all my widgets under the same "main" app and used block tags instead. That seems to be working out well for my purposes. It still bugs me that

Re: Help me understand the error of my ways...

2007-09-07 Thread jake elliott
hi atendo - i think you may have some misunderstandings about what template context is and what it's doing here. maybe another look at this page: http://www.djangoproject.com/documentation/templates_python/#basics will help clear this up for you. best, jake Atendo wrote: > I think I see what

Re: Help me understand the error of my ways...

2007-09-07 Thread Atendo
I think I see what you are getting at. In my views.py, I was able to define my context which is why it worked when I initially tried mapping the app to the URL. But in the template tag, the context is not defined. Thing is, how do you define the context in the template tag? --~--~-~--

Re: Help me understand the error of my ways...

2007-09-07 Thread jake elliott
hi atendo, Atendo wrote: > If I do that, I get this error: > > > KeyError at / > 'link' > Request Method: GET > Request URL: http://localhost:8080/ > Exception Type: KeyError > Exception Value: 'link' > --

Re: Help me understand the error of my ways...

2007-09-07 Thread Atendo
If I do that, I get this error: KeyError at / 'link' Request Method: GET Request URL:http://localhost:8080/ Exception Type: KeyError Exception Value:'link' --~--~---

Re: Help me understand the error of my ways...

2007-09-07 Thread jake elliott
hi atendo, Atendo wrote: > And then in the homepage index.html I've got this: > > {% load industry_widget %} > sorry if i miss the mark here but are you actually invoking the templatetag you've load

Help me understand the error of my ways...

2007-09-07 Thread Atendo
I'm quite new to Python and Django so please bear with me as I'm more of an HTML coder/designer by trade. I'm trying to do something that to me seems simple but apparently isn't. Basically, I have 2 separate "apps" which are really just widgets for a homepage that contain a link and text that I