मैं अपनी साइट से उदाहरण का उपयोग करके ढांचे cherrypy परीक्षण करने के लिए कोशिश कर रहा हूँ:समस्याएं
import cherrypy
class HelloWorld(object):
def index(self):
return "Hello World!"
index.exposed = True
cherrypy.quickstart(HelloWorld())
जब मैं इसे चलाने मैं कंसोल में इस प्रतिक्रिया मिल:
[05/Dec/2011:00:15:11] ENGINE Listening for SIGHUP.
[05/Dec/2011:00:15:11] ENGINE Listening for SIGTERM.
[05/Dec/2011:00:15:11] ENGINE Listening for SIGUSR1.
[05/Dec/2011:00:15:11] ENGINE Bus STARTING
CherryPy Checker:
The Application mounted at '' has an empty config.
[05/Dec/2011:00:15:11] ENGINE Started monitor thread '_TimeoutMonitor'.
[05/Dec/2011:00:15:11] ENGINE Started monitor thread 'Autoreloader'.
[05/Dec/2011:00:15:12] ENGINE Serving on 127.0.0.1:8080
[05/Dec/2011:00:15:12] ENGINE Bus STARTED
स्थानीय स्तर पर ब्राउज़र चलाते समय और स्थानीयहोस्ट पर पॉइंटिग करें: 8080 यह काम करता है लेकिन बाहरी दुनिया में सर्वरिप का उपयोग करते समय: 8080 ऐसा नहीं करता है। क्या मुझे कहीं सर्वर का आईपी पता सेट करना है?
धन्यवाद, यह काम किया! –