A simple Django template.
Before you begin, ensure you have the following installed:
-
Clone the repository:
git clone https://github.com/knowsuchagency/django-template.git cd django-template
-
Initialize the development environment:
just init
This will create a virtual environment, install dependencies, and set up the .env file.
To run the development server:
just runserver
Use just <command>
to run the following commands:
list
: Show all available commandsformat
: Format and fix code using ruff and prettierrunserver
: Run Django development servermakemigrations
: Create new database migrationsmigrate
: Apply database migrationsflush
: Flush the databasecreatesuperuser
: Create a Django superusercollectstatic
: Collect static files
For a full list of commands, run just list
.