Skip to content

Trying out GitHub codespaces and making an example project

License

Notifications You must be signed in to change notification settings

spenserblack/django-codespace-example

Repository files navigation

Django Codespace Example

CI

An example of a GitHub codespace for a Django app

See GitHub's official Django codespace template, too.

Getting Started

Click the "Code" button in the top right, and use the "Codespaces" tab to crate a new codespace.

This will automatically

  • set up extensions like EditorConfig
  • Install dependencies
  • Perform database migrations

to let you spend more time coding and less time setting up your workspace.

Additionally, while not related to codespaces themselves, the CI will perform code quality checks and tests for changes to the main branch and pull requests targeting the main branch.

Development / Codespace Management

You can configure codespace prebuilds in the Repository settings tab, under "codespaces". This will set up a workflow automatically build the devcontainer, allowing for faster start times when creating a new codespace.