Django only for a directory


#1

Hi,

How can I setup Django for just a directory but not the whole domain?
By using the django_setup.py introduced by wiki, all URL of the domain are handled by Django.


#2

Unfortunately, there’s no way to do this with Passenger. There are some instructions for setting up Django with FastCGI at http://wiki.dreamhost.com/Django_FastCGI, but they’re a bit more involved than the Passenger setup.

If you only plan to have one Django application on your site, you may be able to get away with just setting it up to only map URLs from one subdirectory and serve everything else from the “public” folder.