﻿#!C:\Python\Python311\python.exe
# -*- coding: utf-8 -*-
# wsgitest2.py

def application(environ, start_response):
    status = '200 OK'
    output = b'Hello Howtoforge!\n'
    response_headers = [('Content-type', 'text/plain'),
                        ('Content-Length', str(len(output)))]
    start_response(status, response_headers)
    return [output] 

 
import sys
import logging
logging.basicConfig(stream=sys.stderr)
sys.path.insert(0,”/var/www/FlaskApp/”)
 
from FlaskApp import app as application
application.secret_key = ‘fhkjdskjgf(anything)’
