Serve JavaScript modules via Django static files
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- django, javascript, python, react
調査の方向性
Start by reviewing Django's STATICFILES_FINDERS documentation and the original issue #4, then compare the proposed finder, collect_modules, and explicit-folder approaches. Done means selecting and implementing a deterministic integration that serves ReactPy JavaScript modules through Django's static-file system, with an explicit behavior for modules missing at startup.
索引モデルが issue の本文から書いたものです。
説明
Current Situation
Currently, we serve our JavaScript web modules (JavaScript Components) via views. This is due to the fact that our current architecture does not let us know what web modules exist until runtime.
However, Django views are less efficient at serving files than a webserver such as Nginx or Apache.
Proposed Actions
Develop a way of integrating with the Django Static File system.
Work Items
We have a couple of paths we could take
- Create a static file finder that points to ReactPy's web modules directory
- This is the preferred implementation if feasible
- Develop a
collect_modulescommand, similar to django-compressor'scollect_staticcommand- This option requires changes in ReactPy to deterministically collect all JavaScript web modules during startup.
- Also, what should we do if we accidentally did not obtain a static file during startup? Should we fallback to using our Django view, or just throw a
404 Not Founderror?
- Make users put JavaScript modules in dedicated
JAVASCRIPT_MODULES = [ ... ]folder(s)- User's will need to statically define their ReactPy JavaScript modules with this method.
See #4 for the original issue.
- 主要言語
- Python
- スター
- 357
- フォーク
- 22
- 平均マージ
- 10時間 31分
- マージ済み PR(30日)
- 2
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
reactive-python/reactpy-django のほかの issue
-
Add coverage tests オープンcomplexity: 3 (low) priority: 3 (low) type: ci
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
-
complexity: 1 (high) priority: 1 (high)
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
-
complexity: 2 (medium) priority: 3 (low)
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
-
complexity: 2 (medium) priority: 3 (low)
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
-
complexity: 1 (high) priority: 2 (moderate)
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
reactive-python/reactpy-django の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
qgis/QGIS-Documentation#11275 ·
-
bug priority:normal ready-for-dev
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
OpenHands/extensions#626 · コメント 1 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
CSCfi/sd-search-api#39 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
StevenBlack/hosts#3255 ·