- 公式ドキュメント Django の新しいバージョンへの更新 で推奨されていることを実施しましょう。
- django-upgrade を使うと対応したバージョンに自動で対応できます。
- 使用しているPythonやデータベースが移行対象のDjangoで使用できない場合、同時もしくは先んじて対応が必要です。
- CI環境を整備して、継続してバージョンアップしやすい環境を保ちましょう。
- サードパーティとの戦い編
This is the follow up to a post I wrote recently called From Require.js to Webpack - Party 1 (the why) which was published in my personal blog.
In that post I talked about 3 main reasons for moving from require.js to webpack:
- Common JS support
- NPM support
- a healthy loader/plugin ecosystem.
Here I'll instead talk about some of the technical challenges that we faced during the migration. Despite the clear benefits in developer experience (DX) the setup was fairly difficult and I'd like to cover some of the challanges we faced to make the transition a bit easier.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // mjs is used to avoid the need for a package.json file | |
| import globals from "globals"; | |
| import eslint from "@eslint/js"; | |
| import eslintConfigPrettier from "eslint-config-prettier"; | |
| export default [ | |
| eslint.configs.recommended, | |
| { | |
| languageOptions: { | |
| globals: { |
- Official: </> htmx - high power tools for html
- HTML Extentionの略。最新バージョンは2.0.0(2024/06/18現在)
- 属性を記述することでAjax通信、ページの(部分)置き換え、サーバーとの通信(SSE, WebSocket)などができる。
- JavaScriptヘビーな現代に「こういうのでいいんだよ」を提供してくれるツール
- 公式ドキュメント: Django Ninja
- FastAPIに強く影響を受けた、DjangoのREST API作成用フレームワーク
- Python の型ヒントを利用して Web API のスキーマを定義でき、バリデーションも実行できる
- https://django-ninja.dev/tutorial/ を一通り眺めると基本要素をカバーできる
- URLの登録処理
- VSCodeでもVimキーバインドを使いたい
- (tmuxを使ってプロジェクトを横断したい)
VSCodeでVimを使うために以下のプラグインをインストールする
OlderNewer