<filename>dir_function.py
string = "A string"
print(dir(string))

from django.views import View

print(dir(View))
<filename>dir_function.py
string = "A string"
print(dir(string))

from django.views import View

print(dir(View))