I was trying to access the admin application of the standard web2py website which is installed at mydomain
I used the following URL: https://mydomain/admin On my Windows desktop PC I was correctly shown the admin - login page and I was able to log in. On my iPad tablet I was shown an empty page and I could see that the title attribute was "Web2py Mobile Admin" After some searching I discovered in the web2py code that if the useragent is a mobile device, that then the views/default folder is replaced by default.mobile. When I opened admin\views\default.mobile\layout.html on my desktop PC in the PyCharm IDE I found a syntax error flagged in the line of code in the <head> section where the Javascript Modernizr is declared, line 37 : <script src="{{=URL('static','js/modernizr.custom.js')}}"></script!> The exclamation mark after script and before the end bracket ">" was flagged as "Unexpected token". To verify that this exclamation mark was also present on my webserver and that it was causing the admin login page on a mobile device to be empty I had to edit the file admin\views\default.mobile\layout.html on my webserver and I removed the exclamation mark. Then I was able on my iPad tablet to see the admin login page and I could successfully login. If the developers of the web2py framework agree with me that this is a typo/ syntax error I trust they will correct the error in the web2py framework which people download. Martin de Groot -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

