Development web server


Websauna uses Waitress based autoreloading web server for local development. See ws-pserve command. By default, the server binds all IPs of the computer and runs in port 6543.


Command line

First make sure your virtual environment is activated:

source venv/bin/activate

To start a local development web server in reload mode, point it to a development.ini:

ws-pserve ws://conf/development.ini --reload

Example output:

Starting subprocess with file monitor
Starting server in PID 75707.
serving on

To stop the server press CTRL + C.


You can configure your IDE to run the development web server if you point it to a ws-pserve command. Below is an example for Pycharm IDE: