[Twisted-web] deployment with twistd of simple web application

Jonathan Ballet jon at multani.info
Fri Nov 8 10:23:14 MST 2013


On 11/08/2013 06:19 PM, Axel Rau wrote:
>
> Am 08.11.2013 um 15:53 schrieb exarkun at twistedmatrix.com:
>
>> On 12:33 pm, axel.rau at chaos1.de wrote:
>>>
>>> Am 05.11.2013 um 13:25 schrieb Laufens Van Houtven <_ at lvh.io>:
>>>> You probably want to read this:
>>>>
>>>> https://twistedmatrix.com/documents/current/core/howto/application.html
>>>>
>>>> There's a number of ways you can use twistd web, for example with a tac file, but personally I always opt for using a Twisted plugin, so you instead do twistd mything :)
>>>
>>> [snip]
>>> exceptions.SyntaxError: invalid syntax (meteo_plugin.py, line 29)
>>
>> Unfortunately your code was mangled beyond recognition by your email client.
>>
>> Try attaching the code instead so that we can see what you actually have.
>>
> Sorry.
> Here it comes:

		return internet.TCPServer(	int(options['port'],
								  ^^^

You are missing a closing parentheses here.



More information about the Twisted-web mailing list