[Django]-Running a django project in a subdirectory of a site already running Drupal

5👍

The problem is probably that drupal grabs URL’s that are in the form domain/path1/path2 and converts them to domain?q=path1/path2, and thus is probably grabbing everything that is trying to get to Django, and turning it into a drupal call. So my guess is that what you need to do is add a new rewrite condition to drupal’s htaccess telling it to ignore anything targeted at the Django subdirectory. I haven’t done this before, but I would guess you want something like this:

  RewriteCond %{REQUEST_URI} !=/Django_subdirectory

This should go along with all of the other rewrite conditions in that file.

👤Sid_M

Leave a comment