Skip to content

Instantly share code, notes, and snippets.

View kashewnuts's full-sized avatar

Kashun YOSHIDA kashewnuts

View GitHub Profile

Djangoバージョンアップやることまとめ

TL;DR

  1. 公式ドキュメント Django の新しいバージョンへの更新 で推奨されていることを実施しましょう。
  2. django-upgrade を使うと対応したバージョンに自動で対応できます。
  3. 使用しているPythonやデータベースが移行対象のDjangoで使用できない場合、同時もしくは先んじて対応が必要です。
  4. CI環境を整備して、継続してバージョンアップしやすい環境を保ちましょう。
  5. サードパーティとの戦い編

Djangoのバージョン情報について

@kashewnuts
kashewnuts / blog-webpack-2.md
Created April 21, 2024 16:20 — forked from xjamundx/blog-webpack-2.md
From Require.js to Webpack - Part 2 (the how)

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:

  1. Common JS support
  2. NPM support
  3. 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.

@kashewnuts
kashewnuts / eslint.config.mjs
Last active May 27, 2024 12:33
FlatConfig時代のESLintとPrettier設定(AMDモジュール対応版)
// 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: {
@kashewnuts
kashewnuts / django-ninja-memo.md
Last active May 26, 2025 12:57
DjangoNinja導入検討memo

django-ninja調査MEMO

django-ninjaとは

  • 公式ドキュメント: Django Ninja
  • FastAPIに強く影響を受けた、DjangoのREST API作成用フレームワーク
  • Python の型ヒントを利用して Web API のスキーマを定義でき、バリデーションも実行できる

チュートリアル

@kashewnuts
kashewnuts / VSCodeVimSettingsMemo.md
Last active September 11, 2024 16:21
VSCodeでVimを快適に使うためのメモ

VSCodeでVimを快適に使うためのメモ

目的

  • VSCodeでもVimキーバインドを使いたい
  • (tmuxを使ってプロジェクトを横断したい)

基本

VSCodeでVimを使うために以下のプラグインをインストールする