Yeah, unlike HTML/CSS/JS, where your browser can read the code, browsers need a server running to read Python/Django. So you would need to start the local server every time to run the web app locally.
Or, if you don’t need the browser/front-end portion, you can write code that you just execute from the command line (you wouldn’t need to run
runserver, but you would need to run the command).
Hope that helps. :)