django-svelte-start Svelte Themes

Django Svelte Start

Start a project using Django + Svelte

django-svelte-start

Development environment setup

Create a virtual environment and activate it:

python3 -m virtualenv venv && . venv/bin/activate

Install Python development requirements:

python3 -m pip install . pre-commit
pre-commit install

Install NodeJS requirements:

npm install

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

Then go to http://127.0.0.1:8000 on your browser.

Top categories

Loading Svelte Themes