Developer Blog

Tipps und Tricks für Entwickler und IT-Interessierte

Recent Updates

Our latest news

Django | Debugging Django-App in VS Code

See here how to configure VS Code:

  • Switch to Run view in VS Code (using the left-side activity bar or F5). You may see the message
    “To customize Run and Debug create a launch.json file”.

    This means that you don’t yet have a launch.json file containing debug configurations. VS Code can create that for you if you click on the create a launch.json file link:Django tutorial: initial view of the debug panel
  • Select the link and VS Code will prompt for a debug configuration. Select Django from the dropdown and VS Code will populate a new launch.json file with a Django run configuration.

    The launch.json file contains a number of debugging configurations, each of which is a separate JSON object within the configuration array.
  • Scroll down to and examine the configuration with the name “Python: Django”:
  "version": "0.2.0",
  "configurations": [
      "name": "Python: Django",
      "type": "python",
      "request": "launch",
      "program": "${workspaceFolder}\\",
      "args": ["runserver"],
      "django": true,
      "justMyCode": true
  • This configuration tells VS Code to run "${workspaceFolder}/" using the selected Python interpreter and the arguments in the args list.

    Launching the VS Code debugger with this configuration, then, is the same as running python runserver in the VS Code Terminal with your activated virtual environment. (You can add a port number like "5000" to args if desired.)

    The "django": true entry also tells VS Code to enable debugging of Django page templates, which you see later in this tutorial.
  • Test the configuration by selecting the Run > Start Debugging menu command, or selecting the green Start Debugging arrow next to the list (F5):Django tutorial: start debugging/continue arrow on the debug toolbar
  • Ctrl+click the URL in the terminal output window to open the browser and see that the app is running properly.
  • Close the browser and stop the debugger when you’re finished. To stop the debugger, use the Stop toolbar button (the red square) or the Run > Stop Debugging command (Shift+F5).
  • You can now use the Run > Start Debugging at any time to test the app, which also has the benefit of automatically saving all modified files.
Grafana: Getting Started

Run Grafana

Run Docker Image

docker run -d --name=grafana -p 3000:3000 grafana/grafana-enterprise:10.0.0-ubuntu

The, start Browser with http://localhost:3000 and login with admin/admin

After Login, you have the possibility to change the password. We skip here for now.