On Tue, Sep 16, 2008 at 10:02 AM, est <[EMAIL PROTECTED]> wrote:

>
> Today, my boss came to me and asked: "Please move our django site from
> http://xxx.com/ to http://xxx.com/v2/";
>
> It's killing me. Just image how huge mount of HTML source code to
> modify.


> I STRONGLY suggest django implement a 'project url' like asp.net, say
>
> <link rel="stylesheet" href="~/main.css" type="text/css"
> media="screen" />
>
> where ~ always points to the current django project's top URL path.
>

I think you can use the django.root setting in mod_python to solve this
problem.  You can use it to strip the /v2 out of the base of the url.

Take a look at the docs for it:
http://docs.djangoproject.com/en/dev/howto/deployment/modpython/

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to