omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Webserver problems?

    Pythonista
    3
    3
    1064
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ozrhodes
      ozrhodes last edited by

      Hello Folks

      Apologies if this is not a new thread but I couldn't seem to find one relevant to chip in.

      has anyone else encountered problems with the pythonista server when rendering templates in flask and django?

      There seems to be a poor rendering of CSS in both the inbuilt server and when using the local server on a different browser.

      Is this a known problem?

      Is there a known solution?

      Cheers

      Oz

      1 Reply Last reply Reply Quote 0
      • vince77
        vince77 last edited by

        Doesn't seem like a known problem. It could just be some temporary issue.

        1 Reply Last reply Reply Quote 0
        • JonB
          JonB last edited by

          Can you elaborate more? Simple example, rendered with pythonista serving versus another server?

          The built in webview uses the older UIWebview. A more modern equivalent is the WKWebView -- see the @mikael
          Repo here https://github.com/mikaelho/pythonista-webview

          Of course, if you are seeing the same issues with a proper desktop browser, then the problem is more likely that the css is not actually being served... Developer mode in chrome etc would let you figure out if the css is actually getting served properly. A common problem in pythonista is dealing with paths correctly.

          1 Reply Last reply Reply Quote 1
          • First post
            Last post
          Powered by NodeBB Forums | Contributors