On Tue, Aug 18, 2009 at 11:49 AM, Sydney Weidman<s...@plug.ca> wrote:
> I'm moving some Django applications that used to be served from the
> root of the site to a sub-URL like /apps. Do I have to change every
> template that contains a reference to /app1/blah to /apps/app1/blah in
> every template? Is there a centralized/better/prescribed way to do
> this?

there shouldn't be any URL inthe templates, either use {% url ... %}
for linking to views, or {{MEDIA_URL}}/relative/path for media
content.

-- 
Javier

--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to