<filename>countries/context_processor.py
from django.urls import reverse
from countries.models import Country


def countries_data(request):
    countries = Country.objects.all()

    return {'countries': countries}

<filename>countries/context_processor.py
from django.urls import reverse
from countries.models import Country


def countries_data(request):
    countries = Country.objects.all()

    return {'countries': countries}
