how to handle menu links in a template
I started with a parent template with a menu included. The links in
the menu are relative. This works fine for statical template pages,
but things go wrong when i add dynamic pages. For example a page with
forms only works from a subdirectory like /forms/ and al my relative
links dont work anymore.
What is the Django way to solve this? For media files there is a
MEDIA_URL setting.
I dont feel like using hardcoded absolute links in my template,
because this leads to errors when the domain changes.
Rob
--~--~---------~--~----~------------~-------~--~----~
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 django-users+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home