How do I create a list of category pills for a media blog?

I am literally about to scream.

Why is it so impossible for two media articles, created from a Django model (called ‘MediaModule’), who have two separate sets of categories?

No seriously, why?

I have a TextField which container a list to related categories, separated by a comma. I just want to be able to list those categories in my Django template. Why my article keep getting the same bloody categories despite having separate a word list in my Django database?

I am so tired to getting the same unwanted result despite no matter what I do.

#models.py
from django.db import models
import uuid, random, string

def generate_unique_id(charlimit):
    '''This will generate a random set of numbers and letters which will be used to generate a unique URL for each object in the model.
    '''
    random_string = ''.join(random.choices(string.ascii_lowercase + string.digits, k=charlimit))  # Generates a random string
    return f"{random_string}"

def generate_unique_uuid():
    '''This will generate a random set of numbers and letters which are to be derrived from the UUID methodology, which will be used to generate a unique URL for each object in the model.
    '''
    return str(uuid.uuid4())[:8]

# Create your models here.
class MediaModule(models.Model):
    uuid                   =    models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) 
    article_identifier     =    models.CharField(max_length=50, default=generate_unique_id(12), unique=True, editable=False)
    article_headline       =    models.CharField(max_length=100)
    article_body           =    models.TextField()
    article_synopsis       =    models.TextField(null=True)
    article_journalist     =    models.CharField(max_length=20)
    article_date           =    models.DateTimeField(auto_now=True)
    article_image          =    models.ImageField(upload_to='assets')
    article_image_summary  =    models.TextField(default="", null=True, blank=True)
    article_image_credit   =    models.TextField(default="", null=True, blank=True)
    article_pills          =    models.TextField(default="News")

    def get_words_list(self):
        return [word.strip() for word in self.article_pills.split(',')]
    
    def __str__(self):
        return self.article_headline 

#views.py
from django.shortcuts import render, get_object_or_404
from django.http import HttpResponse
from django.template import loader
from .models import MediaModule
from blauwestadtech import utils

def article_objects():
  '''This will create an instance of the model to obtain all values from the model. It will then return the name of the model instance.s'''
  articles  =  MediaModule.objects.all()
  return articles

print(MediaModule.objects.all())

def article_list(request):
  '''This denotes the list of available articles and press releases'''
  articles                =   article_objects()
  meta_object__title        =   utils.meta_object__title("Press & Media")
  meta_object__narrative    =   utils.meta_object__narrative("Stay updated with our latest news and announcements on our Press and Media page. Access press releases, media contacts, and resources for journalists and media professionals.")
  meta_object__image        =   utils.meta_object__image()
  meta_object__url        =   utils.meta_object__url(request)
  template                =   loader.get_template('media-home.html')

  context   = {
     
    'articles'                : articles,
    'meta_object__title'          : meta_object__title,
    'meta_object__narrative'    :   meta_object__narrative,
    'meta_object__image'          : meta_object__image,
    'meta_object__url'        : meta_object__url

  } 

  return HttpResponse(template.render(context, request))

def details(request, article_identifier):
    
  articles                = article_objects()
  article                 = get_object_or_404(MediaModule,article_identifier=article_identifier)
  meta_object__title        = utils.meta_object__title(article.article_headline)
  meta_object__narrative    = utils.meta_object__narrative(article.article_synopsis)
  meta_object__image        = utils.meta_object__image(article.article_image.url)
  meta_object__url        = utils.meta_object__url(request)
  template                = loader.get_template('media-article.html')
  all_media_modules = MediaModule.objects.all()
  words_lists = [media_module.get_words_list() for media_module in all_media_modules]
      
  context = {
      
    'article'                 : article,
    'articles'                : articles,
    'meta_object__title'          : meta_object__title,
    'meta_object__narrative'    :   meta_object__narrative,
    'meta_object__image'          : meta_object__image,
    'meta_object__url'        : meta_object__url,
    'fruits'                  : ['Apple', 'Banana', 'Cherry'],
    'words_lists'             : words_lists

    }

  return HttpResponse(template.render(context, request))

#media-article.html
{% for words_list in words_lists %}
        <ul>
            {% for word in words_list %}
                <li>{{ word }}</li>
            {% endfor %}
        </ul>
    {% endfor %}

I’m leaving this one to the SO community because I have a spitting headache from this, I’t just about to have a breakdown, & I’m within millimeters of taking an axe to my computer.

A load of shitty random AI crap.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật