ignores implicitly for no good reason.
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 50/100
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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/
- Linguagem predominante
- Python
- Estrelas
- 1.1k
- Forks
- 148
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de lepture/python-livereload
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 70/100
lepture/python-livereload#159 · 3 reações ·
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 35/100
lepture/python-livereload#288 ·
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 38/100
lepture/python-livereload#283 · 1 comentário ·
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 25/100
lepture/python-livereload#282 ·
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 25/100
lepture/python-livereload#279 ·
Todas as issues de lepture/python-livereload
Issues semelhantes
-
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 88/100
aws-samples/sample-per-model-bedrock#782 ·
Mantenedores costumam responder em até 1 dia
-
Google text documents are base64-encoded twiceTalvez já em andamento @feiiiiii5 assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
coveragepy/coveragepy#2364 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 72/100