Home > Blockchain >  How can i list all the functions in the class models using terminal?
How can i list all the functions in the class models using terminal?

Time:11-18

from django.db import models

How can i list all the functions in the class models using terminal?

CodePudding user response:

Not sure why you want to use the terminal, but this is how you can list all methods from models from your terminal:

python -c 'from django.db import models; print(dir(models))'

                                                                                                 

CodePudding user response:

In terminal type dir(models) To get their apis try help(models.<fx>)

  • Related