On Oct 16, 4:32 pm, "Jim Zhan" <[EMAIL PROTECTED]> wrote:
> Thanks Guys, I now finally realise that is not possible to achieve this via
> any external configuration like webserver/settings.py, as the app name is
> already defined in the urls.py unless we change ^app/$ to ^$ for the
> application.
When using mod_wsgi, you can get rid of the file name resource from
URL when AddHandler is used, by using a WSGI middleware wrapper.
Search for RewriteRule example in:
http://code.google.com/p/modwsgi/wiki/ConfigurationGuidelines
If you use flup to bridge FASTCGI to WSGI and use Django WSGI
interface, then you can possibly do the same thing.
Graham
> On Wed, Oct 15, 2008 at 9:00 AM, Malcolm Tredinnick <
>
> [EMAIL PROTECTED]> wrote:
>
> > On Tue, 2008-10-14 at 08:43 -0700, jwing wrote:
> > > Hi all, I just moved to Django from Pylons. Django never ceases to
> > > amaze me so far, but when I tried to deploy my app on apache
> > > (fastcgi), I got the rewrite issue with no any corresponding solution
> > > via Google, well, I can't find it at least :(
>
> > > I Got:
> > > 1) several apps under project "demo" (app1, app2, etc);
>
> > > 2) domainhttp://app1.demo.com;
>
> > > 3) many reversed url addresses (by urlresolvers.reverse method) which
> > > are being passed to templates via AJAX calls, in app1, say profile
> > > page, the reversed url will be "/app1/profile"
>
> > Since this part is entirely under your control (you completely control
> > the URL configuration for your own applications), you can could this to
> > not have the "app1" prefix.
>
> > Regards,
> > Malcolm
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---