Autocompletion in Pycharm Terminal window

Answered

Hello,

I am using the evaluation version for Django projects.

How to enable code completion (or intellisense) in Pycharm Terminal Window.

 

Thanks

0
4 comments
Avatar
Permanently deleted user

I found that I can get 'some' intellisense using "Django Console"
Currently, I am activating the Django console by
Ctrl+Alt+R and typing 'shell'.

Is this the correct way?

Regards

0
Avatar
Permanently deleted user

Well, after setting up Django properly, I just have to click on Python Console to get the Django Console with "some' intellisense.

But, is there any way to set up Django Console with shell_plus (of django_extensions) instead of shell ?

0

Hi Ajitweb! Unfortunately, shell_plus is not supported, please vote for PY-4993.

0
Avatar
Permanently deleted user

Thanks Pavel for your answer. I have voted for that question.

Is there is any way to "see" the sql queries being generated when django hits the database.

I know there is the excellent django-toolbar for this purpose, but that is for the browser.

But to checkout the performance of my code, I needed this in the console.

I already have the code from https://mrcoles.com/how-view-django-orm-sql-queries/.
But I have to copy paste this to the console, everytime I need to see it.

Is there any macro feature available in the console ?

Thanks.

0

Please sign in to leave a comment.