31👍
✅
<html>
{{ this_is_my_variable_that_is_passed_to_my_view }}
</html>
the {{
allow variable access to the item which will call the items __unicode__
function if it exists otherwise it will call its __str__
function
9👍
{{ your_variable }}
will print the value.
https://docs.djangoproject.com/en/dev/ref/templates/api/#basics
- [Django]-Malformed Packet: Django admin nested form can't submit, connection was reset
- [Django]-Problems filtering django datetime field by month and day
- [Django]-Cannot apply DjangoModelPermissions on a view that does not have `.queryset` property or overrides the `.get_queryset()` method
Source:stackexchange.com