I am trying to deploy on Apache with mod_wsgi a Django project that uses extdirect app.
extdirect app allows to use ExtJS Ext.Direct functionality with Django. Among other things, using custom template tags, it automatically adds to my templates lines like
<script type="text/javascript"> Ext.Direct.addProvider({"url": "/extdirect/MyRouter/", "namespace": "Remote", "type": "remoting", "id": "MyRouter", "actions": {"MyRouter": [{"name": "getTree", "len": 1}]}}); </script>
In this lines, the "url" parameter is automatically set to begin with "/extdirect"
But the problem is that I mount my site at sub URL
WSGIScriptAlias /mysite /usr/local/django/mysite/apache/django.wsgi
so the "url" from the above script does not work anymore.
The url is set in extdirect/django/templatetags/direct_providers.py file and if I manually change the code to have
klass, '/mysite/extdirect/%s/' % name, ns).render())
it works again.
But is there any way to get it working without interfering with extdirect package?