Forums

Mac OS vs Iphone iOS

In my web app I'm noticing two differences when loading on Mac vs iPhone.

Security:

Username and password are enabled on the website using pythonanywhere web standard config. These work OK on Mac but when loading the page on iPhone they are bypassed and iOS Chrome or iOS Safari are both telling me the page in unsecure?

Jinja:

On Mac OS my webpage renders fine, however in iPhone iOS the Jinja code within index.html is displaying at {...} rather than correctly rendering. I'm using Jinja to dynamically name buttons within the html from a .py and using a CSS sheet. on iOS I'm getting generic buttons with a {..} instead of the name, it's as if neither Chrome or Safari in iOS are able to interpret the Jinja code within the html.

These both seem like straight forward problems but I'm struggling to find any help on existing forums or pythonanywhere help for configuring for mobile browsers!

Finally, site renders fine on my iPad Pro, it's just iPhone where it wont.

Any help much appreciated!

That's interesting! For the username and password thing, is it possible that the iPhone is caching previously-entered credentials? You could perhaps test that by changing either the username or the password, and seeing if it then prompted you for them again. I'm

For the "page is not secure" issue, that probably means that the Mac is automatically going to the HTTPS URL for your site, but the iPhone is not. You can force HTTPS on the server side to fix that -- the option is in the "Security" section of the "Web" page.

For the rendering -- unless I'm fundamentally misunderstanding what you're saying, the templates -- being Jinja -- would be rendered on the server side and would never make it up to the browser. Unless you perhaps have some kind of user-agent sniffing code on the server side that is sending different stuff to iPhones than it does to the Mac?