[Window Title] Visual Studio Code [Content] Cannot connect to runtime process (reason: This socket has been ended by the other party). [Open launch.json] [Cancel] code example
Example 1: The session is unavailable because no secret key was set. Set the secret_key on the application to something unique and secret.
if __name__ == "__main__":
app.secret_key = 'super secret key'
app.config['SESSION_TYPE'] = 'filesystem'
sess.init_app(app)
app.debug = True
app.run()
Example 2: Superuser creation skipped due to not running in a TTY. You can run `manage.py createsuperuser` in your project to create one manually.
$ winpty python manage.py createsuperuser