Bug#575102: mumble-django shouldn't depend on apache

2010-03-24 Thread Michael Ziegler
On Tue, Mar 23, 2010 at 03:31:11PM +0100, Stefan Bühler wrote:
 There are other webservers which are capable of handling wsgi applications,
 and there is no need to run the webserver on the same host,
 so i think it should be a recommend dependency.

Yes, I see your point, regarding that it is technically possible (although not
advisable) to run md in Django's development server without *any* web server.

I'll change it in the next version.

Cheers,
Michael.




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#575102: mumble-django shouldn't depend on apache

2010-03-23 Thread Stefan Bühler
Package: mumble-django
Version: 2.0-1

There are other webservers which are capable of handling wsgi applications,
and there is no need to run the webserver on the same host,
so i think it should be a recommend dependency.

I run it myself with lighttpd2, and it works fine.

I use
exec /usr/bin/spawn-fcgi -s /var/run/lighttpd/mumble-django.sock -n -u 
mumble-server -U www-data -- /usr/share/mumble-django/mumble-
django.fastcgi
in my supervise run script and the following 
/usr/share/mumble-django/mumble-django.fastcgi:
#!/usr/bin/python
# -*- coding: utf-8 -*-

# Set this to the same path you used in settings.py, or None for auto-detection.
MUMBLE_DJANGO_ROOT = None;

### DO NOT CHANGE ANYTHING BELOW THIS LINE ###

import os, sys
from os.path import join, dirname, abspath, exists

# Path auto-detection
if not MUMBLE_DJANGO_ROOT or not exists( MUMBLE_DJANGO_ROOT ):
MUMBLE_DJANGO_ROOT = dirname(abspath(__file__));

# environment variables
sys.path.append( MUMBLE_DJANGO_ROOT )
sys.path.append( join( MUMBLE_DJANGO_ROOT, 'pyweb' ) )
os.environ['DJANGO_SETTINGS_MODULE'] = 'pyweb.settings'


# If you get an error about Python not being able to write to the Python
# egg cache, the egg cache path might be set awkwardly. This should not
# happen under normal circumstances, but every now and then, it does.
# Uncomment this line to point the egg cache to /tmp.
#os.environ['PYTHON_EGG_CACHE'] = '/tmp/pyeggs'


from django.core.servers.fastcgi import runfastcgi
runfastcgi(method=threaded, daemonize=false)



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org