tomchristie/django-rest-framework — pull request #83 by meurig (2011-10-31 04:14:57+00:00)
Title: Generated urls are missing the SCRIPT_NAME component.

If a site is not hosted at the root of a domain (e.g. if it's hosted at http://www.example.com/mysite/) then generated urls are being truncated.

i.e. http://www.example.com/documents/1/ instead of http://www.example.com/mysite/documents/1

I believe the attached change addresses this problem and also #76/#77.