/django-svelte-start

Start a project using Django + Svelte

Primary LanguagePythonBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

django-svelte-start

Development environment setup

  1. Create a virtual environment and activate it:
python3 -m virtualenv venv && . venv/bin/activate
  1. Install Python development requirements:
python3 -m pip install .[dev]
pre-commit install
  1. Install NodeJS requirements:
npm install
  1. Process initial migrations:
python3 manage.py migrate

Start developing

Open two terminals and run these commands (one in each terminal):

  • npm run build:watch
  • python3 manage.py runserver

Make sure that you've activated the Python virtual environment before!