← Back to team overview

graphite-dev team mailing list archive

[Question #243048]: Run graphite webapp within Twisted web server

 

New question #243048 on Graphite:
https://answers.launchpad.net/graphite/+question/243048

Hi folks!

I'd like to run graphite webapp within Twisted web server.
(I don't want to use Apache+mod_python because I use Windows(and it's not that straightforward as in Linux to install it) and furthermore Twisted Web server comes already installed as part of twisted package).

So I'm trying to run it as follows:
twistd.py web --port 8080 --wsgi "C:\dev\graphite"
But getting this error:
twistd.py: No such WSGI application: 'C:\\dev\\graphite'

(I also tried to specify different paths, like c:\dev\graphite\webapp) 

--wsgi doesn't take a path; it takes a fully-qualified object name.

Can anyone please suggest me what should I use as a parameter for --wsgi option?

P.S. most likely you have twistd.py in your system so you can test it locally.
(Documentation for TwistedWeb is at https://twistedmatrix.com/trac/wiki/TwistedWeb)

-- 
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.