What are the rewrite rules used to push through stuff to Interchange?
Are these before or after the rewrite fules related to mod_python and
where does the Location directive sit relative to that.

In other words, provide the complete Apache configuration sections
pertaining to both.

Graham

On Sep 6, 6:14 pm, macgregor <[EMAIL PROTECTED]> wrote:
> Yes, I've read it. Django is running on Apache/mod_python on my
> server, it's the running side-by-side with another application server
> (Interchange) in my case that I'm having trouble with.
>
> Here is how I have it set up:
>
> <Location "/blog/">
>         SetHandler python-program
>         PythonHandler django.core.handlers.modpython
>         SetEnv DJANGO_SETTINGS_MODULE foo.settings
>         PythonOption django.root /blog
>         PythonDebug On
>         PythonPath "['/home/davidson/django_projects'] + sys.path"
> </Location>
>
> I've added these rules so Django processes these requests -- rather
> than Interchange
> RewriteEngine on
> RewriteRule ^/blog - [PT,L]
> RewriteRule ^/admin - [PT,L]
>
> What I'm trying to do is have my django project running (at Location "/
> mysite/"> possibly) and then direct requests tohttp://www.example.com/blog/
> to the blog app inside my project and sendhttp://www.example.com/testimonials/
> to the testimonials app inside my project.
>
> On Sep 5, 6:47 pm, Graham Dumpleton <[EMAIL PROTECTED]>
> wrote:
>
> > Have you read the mod_python hosting documentation at all?
>
> >  http://docs.djangoproject.com/en/dev/howto/deployment/modpython/
>
> > Graham
>
> > On Sep 6, 10:19 am, macgregor <[EMAIL PROTECTED]> wrote:
>
> > > I'm working on a site that runs on Interchange 
> > > (http://www.icdevgroup.com/) and I am wanting to add a Django-powered 
> > > blog and
> > > testimonials apps.
>
> > > Our Interchange setup uses mod_rewrite to send page reqests through a
> > > perl/cgi script which processes the pages and then passes them on to
> > > Apache to serve.
>
> > > I want to be able to single out requests 
> > > forwww.example.com/blog/andwww.example.com/testimonials/andletDjango 
> > > handle those. I have
> > > Django 1.0 running with Apache and mod_python.
>
> > > I'm new to Django and Python.Can anyone give me a hand with this?
--~--~---------~--~----~------------~-------~--~----~
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