Greetings,
I'm building a web application for use in LAN (low traffic).
I want to use cherrypy as a webserver: I want cherrypy to serve the
static files; other requests should be passed to django.
I have a setup; cherrypy does serve the static files.
problem is that django still recieves the requests for the static
files.
what am I doing wrong?
def start():
import cherrypy
from django.core.handlers.wsgi import WSGIHandler
app = WSGIHandler()
cherrypy.config.update({'log.screen': True,'tools.wsgiapp.on':
True,'
tools.wsgiapp.app': app})
conf = {'/static': {'tools.staticdir.on':
True,'tools.staticdir.dir': '/somewhere/static'},
'/media': {'tools.staticdir.on':
True,'tools.staticdir.dir': '/somewhere/media'}}
cherrypy.tree.mount(app, '/', config=conf)
cherrypy.server.quickstart()
cherrypy.engine.start()
kind regards,
henk-jan ebbers