from bottle import Bottle, route, run, debug
application = Bottle()app = applicationdebug(True)
@app.route('/mailform', method=['POST'])def mailform(): return 'Hello from mailform'
@app.route('/')def index(): return '''\ <form method="post" action="{}"> <input value="Mail" type="submit" /> </form>'''.format( app.get_url( '/mailform' ) )WSGIDaemonProcess test user=nikos group=nikos home=/home/nikos/wsgiWSGIScriptAlias /test /home/nikos/wsgi/test.py process-group=test application-group=%{GLOBAL}
WSGIDaemonProcess www user=nikos group=nikos home=/home/nikos/wsgiWSGIScriptAliasMatch / /home/nikos/wsgi/www.py process-group=www application-group=%{GLOBAL}
@app.route('/') def index(): return '''\ <form method="post" action="/mailform"> <input value="Mail" type="submit" /> </form>'''Sorry, the requested URL 'http://superhost.gr/mailform' caused an error:
Internal Server ErrorException:TypeError("argument of type 'NoneType' is not iterable",)Traceback:Traceback (most recent call last): File "/home/nikos/wsgi/bottle.py", line 996, in _handle out = route.call(**args) File "/home/nikos/wsgi/bottle.py", line 2007, in wrapper rv = callback(*a, **ka) File "/home/nikos/wsgi/www.py", line 189, in mailform if provider in FROM:TypeError: argument of type 'NoneType' is not iterable--
You received this message because you are subscribed to the Google Groups "modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to modwsgi+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/modwsgi/706267e7-b7b4-4991-b635-6d9f3e1ba52a%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/modwsgi/DFBEFFB7-23BB-4DB5-A16B-DAA9D9CAC95F%40gmail.com.
I also wanted to ask you this:
--
You received this message because you are subscribed to the Google Groups "modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to modwsgi+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/modwsgi/62980d90-c76c-44e5-b264-44bfa1eccc14%40googlegroups.com.
Thank you for the insight Graham, i'll stick to Apache/mod_wsgi
From: Graham Dumpleton
Sent: Σάββατο, 7 Μαρτίου 2020 11:29 μμ
To: mod...@googlegroups.com
Subject: Re: [modwsgi] Error accessing a route endpoint with same name in 2 processes
If you are only just starting out, performance should be the least of your concerns. All the WSGI servers will perform fine for the bulk of things people do. You are better off focusing on the functionality of your application. So stick for Apache/mod_wsgi for now, its integrated approach is going to be safer. There is no need to complicate things for yourself by adding more moving parts.
To view this discussion on the web visit https://groups.google.com/d/msgid/modwsgi/CE9A9A4E-F624-4F88-A5B6-8FCF240185F3%40gmail.com.