(2023-08-10) Willison Running A Django And Postgresql Development Environment In Github Codespaces

Simon Willison: Running a Django and PostgreSQL development environment in GitHub Codespaces. Helping people setup development environments (and fix them when they break) can be incredibly frustrating. I'm really excited about cloud-based development environments such as GitHub Codespaces for exactly this reason - I love the idea that you can get a working environment by clicking a green button, and if it breaks you can throw it away and click the button again to get a brand new one.

how to run a full Django + PostgreSQL development environment in GitHub Codespaces

The key to this is three files in the .devcontainer directory of the repository

With this .devcontainer/ directory setup for a repository, starting a Codespace for it can be done from the green Code button menu


Edited:    |       |    Search Twitter for discussion