ニュース

この記事は、Docker(Docker-Compose)を利用しPython,Django,Postgres,Gunicorn,Nginxの開発・本番環境の構築方法を紹介します。 以下のような開発フローに対応する方法となります。 ①:ローカル環境のDocker内で開発 ↓ ②:プロジェクトを本番環境へデプロイ ↓ ③:本番環境のDockerでシステム運用 ↓ ④:① ...
This project demonstrates how to connect to a PostgreSQL database using Python and SQLAlchemy, with the connection string stored securely in an environment variable.
Overview This guide covers the essential steps to connect to a PostgreSQL database using popular programming languages such as Python, JavaScript, and Java. You'll find simple code snippets along with ...
2. 設定ファイルの作成 プロジェクトのルートディレクトリに.pre-commit-config.yaml というyamlファイルを作成します。 3. 設定ファイルの設定 今回の例ではblack, flake8, isort, mypyを使用してコードの品質を向上させます。各フックは、異なるタスクを実行します。 rev設定はプロジェクトのPython ...