Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

ignores implicitly for no good reason.

オープン
#264 コメント 2 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
50/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
flask, python
領域
devtools, web-dev

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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/
主要言語
Python
スター
1.1k
フォーク
148
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

lepture/python-livereload のほかの issue

lepture/python-livereload の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。