Last active
October 11, 2022 21:46
-
-
Save morenoh149/0a8619287b991034bae3b988a62147d0 to your computer and use it in GitHub Desktop.
django inspect variable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print('instance', dir(template_context['instance'])) | |
> lists all variable fields |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment