omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. gruntfutuk

    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.


    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 3
    • Best 0
    • Controversial 0
    • Groups 0

    gruntfutuk

    @gruntfutuk

    Geek, photographer, IT Project Manager and Consultant

    0
    Reputation
    1203
    Profile views
    3
    Posts
    0
    Followers
    0
    Following
    Joined Last Online
    Location Telford, United Kingdom Age 59

    gruntfutuk Unfollow Follow

    Latest posts made by gruntfutuk

    • RE: Getting started with Flask ... can't get past first base

      Brilliant. Thank you. Worked fine. Now to work.

      Is that normally required, or specific to Pythonista? I don't recall seeing it in basic introductions for Flask.

      posted in Pythonista
      gruntfutuk
      gruntfutuk
    • Getting started with Flask ... can't get past first base

      I've been learning Python for a while now (after a break from programming of several decades) but have concentrated on console work. Thought it was time to do some web stuff and decided to give Flask a go.

      I note that it is installed as standard in Pythonista. I assumed I just entered the basic hello world code.

      from flask import Flask
      app = Flask(__name__)
      
      @app.route('/')
      def hello_world():
          return 'Hello, World!'
      

      and whilst I get no errors when I execute the above, nor do I get anything else. Is a flask server running in the background? Do I need to open a web browser with a particular url. I was anticipating 127.0.0.1:8080 as a guess but there is nothing there.

      Please point me in the right direction.

      posted in Pythonista
      gruntfutuk
      gruntfutuk