|
I am using OSQA as a secondary application and when clicked on the logo in the header, I want it to redirect to another url. I added this to forum/views/readers.py:
and this to /forum/urls.py:
however it still links to the osqa app's main site instead of localhost:8000 Would you please guide me about how can I make this change. I am new to Django, so excuse me if this is basic but I couln't find an answer on the net. Thanks. EDIT I forgot to mention that I also edited forum/skins/templates/default/header.html
|
|
My lazy answer is you need to update the template. Actually your view function and url that you added are probably moot if you just update the template. thank you, I forgot to add that to my question. I edited my question with the change I made to header.html. It seems like the change I make to the template does not take effect and it calls the index function instead of my indexhome function.
(26 Dec '10, 06:28)
erenay
The regex for you url is the same for both urls. The regex for indexhome will never be used. Take a read though the url dispacther docs http://docs.djangoproject.com/en/dev/topics/http/urls/ "Django runs through each URL pattern, in order, and stops at the first one that matches the requested URL." Having a view with a redirect for a single link is pointless, just put the link directly in the template.
(27 Dec '10, 12:24)
Justin Hamade
|