tag:support.flying-sphinx.com,2011-01-05:/discussions/questions/18-sphinx-configuration-for-django-on-herokuFlying Sphinx: Discussion 2016-08-11T01:37:12Ztag:support.flying-sphinx.com,2011-01-05:Comment/128975122012-01-16T10:18:37Z2012-01-16T10:18:37ZSphinx configuration for Django on Heroku<div><p>Hi Peter</p>
<p>At this point there isn't. I'd love to be able to support
Django, but the catch is dealing with Heroku's shared PostgreSQL
databases.</p>
<p>For Ruby sites, there is the flying-sphinx gem, and that
actually sets up a reverse SSH port forward to allow the Flying
Sphinx servers to access the database temporarily when Sphinx is
indexing. That's the hard part of what would need to be implemented
on the Django/Python side of things - the rest is a few API calls
to send the Sphinx configuration through, request indexing to
happen and start/stop the daemon, plus reading in the Sphinx
connection details via the environment variables.</p>
<p>I'm not at all experienced with Django or Python, mind you,
which is why such support is not something I can whip up quickly.
Do you know of any options to manage SSH connections with reverse
port forwards in Python?</p>
<p>Cheers</p>
<p>Pat</p></div>Pat Allan