serving from 2009

0 views
Skip to first unread message

Kenneth Gonsalves

unread,
Jun 8, 2009, 12:59:43 AM6/8/09
to fosscon...@googlegroups.com
hi,

there is a request to serve the site from in.pycon.org/2009/ rather than from
root. I have no clue as how to do this with apache/mod_python apart from the
drastic step of renaming the app from 'web' to '2009'. Any clues? I asked on
django-users, but no reply there so far.
--
regards
kg
http://lawgon.livejournal.com

Thejaswi Puthraya

unread,
Jun 8, 2009, 1:48:30 AM6/8/09
to fossconf-devel
Hi,

On Jun 8, 9:59 am, Kenneth Gonsalves <law...@thenilgiris.com> wrote:
> hi,
>
> there is a request to serve the site from in.pycon.org/2009/ rather than from
> root. I have no clue as how to do this with apache/mod_python apart from the
> drastic step of renaming the app from 'web' to '2009'. Any clues? I asked on
> django-users, but no reply there so far.

I have never worked with mod_python but I will try to come up with how
this is
done. In the meantime, you can just make a small change to the urls.py
so that it gets
redirected to /2009/.

url(r'^i18n/', include('django.conf.urls.i18n')),
+ url(r'^2009', include('conference.web.urls')),
url(r'^', include('conference.web.urls')),
#password


--
Cheers
Theju

Kenneth Gonsalves

unread,
Jun 8, 2009, 4:34:20 AM6/8/09
to fosscon...@googlegroups.com
On Monday 08 June 2009 11:18:30 Thejaswi Puthraya wrote:
> > hi,
> >
> > there is a request to serve the site from in.pycon.org/2009/ rather than
> > from root. I have no clue as how to do this with apache/mod_python apart
> > from the drastic step of renaming the app from 'web' to '2009'. Any
> > clues? I asked on django-users, but no reply there so far.
>
> I have never worked with mod_python but I will try to come up with how
> this is
> done. In the meantime, you can just make a small change to the urls.py
> so that it gets
> redirected to /2009/.
>
>     url(r'^i18n/', include('django.conf.urls.i18n')),
> +    url(r'^2009', include('conference.web.urls')),
>     url(r'^', include('conference.web.urls')),
>     #password

actually it should be r'^2009/'. It works so /2009/ is served. I think I will
have to use apache mod_rewrite to direct '/' to '/2009' - will try as soon as
this stupid tata indicom loads the apache docs.

Reply all
Reply to author
Forward
0 new messages