Skip to content

Instantly share code, notes, and snippets.

@morenoh149
Last active October 11, 2022 21:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save morenoh149/0a8619287b991034bae3b988a62147d0 to your computer and use it in GitHub Desktop.
Save morenoh149/0a8619287b991034bae3b988a62147d0 to your computer and use it in GitHub Desktop.
django inspect variable
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