Using Python 3.3 in OpenShift's book example

前端 未结 2 1692
夕颜
夕颜 2021-02-10 05:25

OpenShift recently published a book, \"Getting Started with OpenShift\". It is a good guide for someone just starting out.

In Chapter 3 they show how to modify a templat

2条回答
  •  终归单人心
    2021-02-10 06:27

    If you are facing issues with virtualenv settings on wsgi.py file in Python3 I have solved just deleting it.

    This is my wsgi.py file and it's working

    #!/usr/bin/python
    
    from flaskapp import app as application
    
    if __name__ == '__main__':
        from wsgiref.simple_server import make_server
        httpd = make_server('0.0.0.0', 5000, application)
        # Wait for a single request, serve it and quit.
        #httpd.handle_request()
        httpd.serve_forever()
    

提交回复
热议问题