On 07/02/2010 01:23 PM, garagefan wrote:
thanks. so the simple answer is... "tough luck"

perhaps i can set up the django app under a different domain name and
merely set up domain masking.

The answer isn't necessarily "tough luck". It *is* possible to use mod_python and mod_php on the same server. It really depends on the distro. Having said that, there is really no reason to use mod_python any more. If you're going to use Apache, mod_wsgi is the preferred option. The challenge you're going to have isn't with getting mod_wsgi and mod_php to cooperate. It's getting the mod_rewrite expressions right. You have to understand what is being done in the Drupal-supplied .htaccess file and make sure that the rules don't overlap with what you want to do in Django. Here is what I see in Drupal's .htaccess file:

# Rewrite URLs of the form 'x' to the form 'index.php?q=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

You'll need to modify that appropriately to accommodate the URL namespace of your Django app or Drupal will just intercept the request and show a 404 page.
--
Regards,

Clifford Ilkay
Dinamis
1419-3266 Yonge St.
Toronto, ON
Canada  M4N 3P6

<http://dinamis.com>
+1 416-410-3326

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to [email protected].
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