I am running django application in Pycharm in DEBUG mode. Each time when i change some code system checks are performed.
pydev debugger: process 2354 is connecting
Performing system checks...
Is there any way to skip system checks/speed up this checks?
UPDATE: I want to disable system checks after changes in code, because they are too slow.
The Problem
Unfortunately, there's no command-line argument or setting you can just turn on in order to turn off the checks in
runserver
. In general, there's the--skip-checks
option which can turn off system checks but they are of no use forrunserver
.If you read the code of the
runserver
command, you see that it essentially ignores therequires_system_checks
andrequires_migration_checks
flags but instead explicitly callsself.check()
andself.check_migrations()
in itsinner_run
method, no matter what:A Solution
What you could do is derive your own
run
command, which takes therunserver
command but overrides the methods that perform the checks:You need to put this under
<app>/management/commands/run.py
where<app>
is whatever appropriate app should have this command. Then you can invoke it with./manage.py run
and you'll get something like:There's one thing that might speed up the PyCharm's debugger and that is to turn off the "Collect run-time types information for code insight" setting :located under File > Settings > Build, Execution, Deployment > Python Debugger.