Missing django log output
I am working through the book "Practical Django 2 and Channels 2" and have an issue regarding the logging output in PyCharm.
When I start manage.py from Terminal I get the following output:
>manage.py test -v2
Creating test database for alias 'default' ('file:memorydb_default?mode=memory&cache=shared')...
[...]
test_invalid_contact_us_form (main.tests.test_forms.TestForm) ... ok
test_valid_contact_us_form_sends_email (main.tests.test_forms.TestForm) ... ok
test_about_us_page_works (main.tests.test_views.TestPage) ... ok
test_home_page_works (main.tests.test_views.TestPage) ... ok
----------------------------------------------------------------------
Ran 4 tests in 0.020s
OK
[...]
But when I use Ctrl-Alt-R and enter test -v2 I get the following output in the Run console:
Testing started at 11:54 ...
python.exe "C:\Program Files\JetBrains\PyCharm 2019.1.3\plugins\python\helpers\pycharm\django_test_manage.py" test -v2 D:\workspaces\local-python\booktime
Creating test database for alias 'default' ('file:memorydb_default?mode=memory&cache=shared')...
[...]
Destroying test database for alias 'default' ('file:memorydb_default?mode=memory&cache=shared')...
Process finished with exit code 0
I know the path says PyCharm 2019.1.3, but it is PyCharm 2020.1.1. Also enabling 'Do not use Django test runner:' does not make any difference. Always 'django_test_manage.py' is used.
Please sign in to leave a comment.
Have you tried using Tools | Run manage.py Task... instead?
Yes, as I said, I already tried Ctrl-Alt-R, which results in the second output. My point is, that I am missing the information about the executed tests:
This part in particular.
Ah, sorry, I'm using macOS so I didn't notice it.
I can't reproduce it though. It's strange that PyCharm is using helpers from the older version.
What happens if you remove C:\Program Files\JetBrains\PyCharm 2019.1.3 folder?
I am really sorry, I think I did not made my issue clear.
Using the old path is no issue, because PyCharm always automatically updates the current installation:
My issue is the following: When I use the -v2 switch I get in the 'regular' (manually invoking manage.py test -v2) output much more information than, when I use Run manage.py Task. with test -v2.
Originally I also thought, that logging output is skipped, but with the logging statements is everything okay.
I get it, but it's still odd that the path doesn't correspond to the IDE version.
I get the same output when running in or out of IDE.
Could you reinstall PyCharm from https://www.jetbrains.com/pycharm/download/ and let me know if it helps?
Btw, is it reproducible in a new project with a minimal code snippet?
Nice information provided by you, it really helped me to understand this topic. I have also referred this article to my friends and they also enjoyed this informative post
English speaking course online
Temporarily put aside all worries, walk with him on the road I will not turn around so I will not regret the past Keep the heart peaceful and forget all the troubles and troubles This life is said many times love. geometry dash