Τη Σάββατο, 7 Μαρτίου 2020 - 9:00:41 μ.μ. UTC+2, ο χρήστης DL Neil έγραψε: > On 7/03/20 2:33 AM, îØî-îºî¿ïé îÆî ïüî³î¿ïé wrote: > > First i must say i use Bottle, but the same may also be the case in Flask > too. I ask here and not in sub Bottle because there are only a few people > there and i receive no responses. > > > > Actualy since i started here let me say what i have found. > > > > Iam just trying to post html form data to the following endpoint. > > > > @app.route( '/mailform', method=['POST'] ) > > IF i try to post the html form data using the the endpoint url way, i get > "Method NOT Allowed" error: > > > > <form method="POST" action="/mailform"> > > > > > > WHILE if i try the following way, i receive no error. > > > > <form method="POST" action="%s"> ...html... </form>''' % app.get_url( > '/mailform ) > > > > Can someone explain why?! > > > Please post the full error message and traceback. > > To clarify: is the error coming from Python or from the web server? > > -- > Regards =dn
Sorry, the requested URL 'http://superhost.gr/mailform' caused an error: Internal Server Error Exception: 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 -- https://mail.python.org/mailman/listinfo/python-list