Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

ignores implicitly for no good reason.

Aperta
#264 2 commenti 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
50/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
flask, python
Ambito
devtools, web-dev

Direzione di ricerca

Reproduce the minimal Flask setup using server.watch('./templates/*.html') and observe the handlers log, especially the Ignore entry for ./templates\index.html. Trace how server.watch() handles the template path and make edits to index.html trigger a browser reload instead of being ignored.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

I've tried to set it up with Flask and get it going for a really basic scenario. Apart from crashing anytime I edit any of the .py files, it ignores the html file I'm interested in, disregarding what I add to server.watch().

Here's the minimal setup:

from flask import Flask, render_template
app = Flask(__name__)

@app.route('/')
def hello():
    return render_template('index.html')

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

folder structure:

app.py
templates/index.html

Example stacktrace:

[I 221121 18:13:30 server:335] Serving on http://127.0.0.1:5500
[I 221121 18:13:30 handlers:62] Start watching changes
[I 221121 18:13:30 handlers:64] Start detecting changes
[I 221121 18:13:31 handlers:135] Browser Connected: http://127.0.0.1:5500/
[I 221121 18:13:31 handlers:135] Browser Connected: http://127.0.0.1:5500/
[I 221121 18:13:32 handlers:82] Ignore: ./templates\index.html
[I 221121 18:13:33 handlers:92] Reload 2 waiters: None
[I 221121 18:13:34 handlers:135] Browser Connected: http://127.0.0.1:5500/
Lingua principale
Python
Stelle
1.1k
Fork
148
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di lepture/python-livereload

Tutte le issue di lepture/python-livereload

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.