![]() ![]() If you want to create a custom management command in your project, you can find how to do that in the official Django documentation. ![]() Management commands can be executed like this: (myproject_env)$ python manage.py clearsessions Django itself comes with a bunch of commands like: migrate, runserver, collectstatic, makemessages, and clearsessions. In this article, I will show you how to set breakpoints and debug Django management commands visually in P圜harm.ĭjango management commands are scripts that can be executed on your Django project to do something with the project database, media files, or code. Besides editing code, it allows you to inspect the database, work with Git repositories, run management commands, execute bash commands and Python scripts, and debug code just in the same window. ![]() My favorite editor for Python projects is P圜harm.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |