Skip to content

error using livereload with flask #270

Description

@obnoxiousmods
from flask import Flask, render_template, request, redirect, url_for, session
from livereload import Server

app = Flask(
    __name__,
    static_url_path='/static',
    static_folder='static'
)

@app.route('/', methods=['GET', 'POST'])
def index():
    return ''

if __name__ == "__main__":
    app.debug = True
    server = Server(app.wsgi_app)
    server.watch('templates/*.*')
    server.serve()

this is my code, getting this error TypeError: WSGIContainer.environ() missing 1 required positional argument: 'request'
everytime i visit 127.0.0.1:5500?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions