Skip to content

Getting Started

Ben C edited this page Jan 3, 2023 · 1 revision

Getting Started

Thanks for choosing to use Djazztro! This guide will outline how to start a new project with create-djazztro.

Preface

Before we get started, Djazztro supports creating a project with npm, pnpm, and yarn. However, this guide will use npm for examples. Just keep in mind that you can change any of these out with pnpm or yarn!

Running the Template

To get started, run npm create djazztro. This will guide you few a few prompts.

Warning

The python package manager section lets you choose pip, this is not recommended if you're not in a virtualenv, as it can bloat your global interpreter.

Starting The Server

To start a development server, run npm run dev, this will start a Django and Astro server, you'll want to connect to the Django server to get teh actual site. (By default this is bound to port 8000).

Environment Variables

  • You can change the port that Astro runs on by specifying the ASTRO_PORT variable.
  • You can change the Django port by editing the dev:backend script in package.json and changing the args
Clone this wiki locally