Back to Browse

Django-Taggit - Adding Tags to Django Models

8.8K views
Feb 23, 2022
19:24

This video will dive into the django-taggit library, which is used to add tags to Django models. Tagging is a common feature in webapps with dynamic content! We'll see how to install django-taggit, and integrate with Django models and admin in this video. We'll also use TailwindCSS to add basic styles to a page that shows our tags and models. In the next video, we'll add a feature allowing users to filter the list down to the tag they're interested in, using Alpine.js โ˜•๏ธ ๐—•๐˜‚๐˜† ๐—บ๐—ฒ ๐—ฎ ๐—ฐ๐—ผ๐—ณ๐—ณ๐—ฒ๐—ฒ: To support the channel and encourage new videos, please consider buying me a coffee here: https://ko-fi.com/bugbytes ๐Ÿ“Œ ๐—–๐—ต๐—ฎ๐—ฝ๐˜๐—ฒ๐—ฟ๐˜€: 00:00 Intro 01:01 Creating Film Model 01:39 Adding Model to Admin 02:48 django-taggit overview 07:15 Exploring django-taggit in the Django shell 10:08 Adding tags to admin list page 12:26 Accessing tags in template and views 14:44 Styling buttons with TailwindCSS 16:18 Styling card with TailwindCSS ๐—ฆ๐—ผ๐—ฐ๐—ถ๐—ฎ๐—น ๐— ๐—ฒ๐—ฑ๐—ถ๐—ฎ: ๐Ÿ‘พ Github: https://github.com/bugbytes-io/django-taggit-demo ๐Ÿ“– Blog: https://www.bugbytes.io/posts/creating-scheduled-tasks-with-django-crontab/ ๐Ÿฆ Twitter: https://twitter.com/bugbytesio ๐Ÿ“š ๐—™๐˜‚๐—ฟ๐˜๐—ต๐—ฒ๐—ฟ ๐—ฟ๐—ฒ๐—ฎ๐—ฑ๐—ถ๐—ป๐—ด ๐—ฎ๐—ป๐—ฑ ๐—ถ๐—ป๐—ณ๐—ผ๐—ฟ๐—บ๐—ฎ๐˜๐—ถ๐—ผ๐—ป: Starter Code: https://github.com/bugbytes-io/django-taggit-demo/tree/master/starter django-taggit: https://django-taggit.readthedocs.io/en/latest/ TailwindCSS: https://tailwindcss.com/docs/installation #python #django #tags #tailwindcss

Download

0 formats

No download links available.

Django-Taggit - Adding Tags to Django Models | NatokHD