Getting 2 apps to show on a homepage

2007-09-05 Thread Atendo
I have one project with two apps. I want to show a homepage that pulls in the two apps as homepage widgets. I tried the following approach... urlpatterns = patterns('', (r'^$', 'myproj.app1.views.index'), (r'^$', 'myproj.app2.views.index'), ... ...but what ended up happening is that only the bl

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

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 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 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