Django templates - lorem ipsum
Django tip:
You can generate lorem ipsum inside a Django template with the
lorem
tag.https://docs.djangoproject.com/en/3.2/ref/templates/builtins/#lorem
You can provide any (or none) of the following arguments:
count
- number of paragraphs or wordsmethod
- words/HTML paragraphs/plain-text paragraphsrandom
- doesn't use the common paragraph ("Lorem ipsum dolor sit amet...")Example:
{% lorem 6 p random &} # generates 6 paragraphs of text that doesn't # start with "Lorem ips um dolor sit amet"