from django.conf import settings


class VersionMiddleware:
    def __init__(self, get_response):
        self.get_response = get_response

    def __call__(self, request):
        response = self.get_response(request)
        response["X-Project-Version"] = settings.PROJECT_VERSION
        return response

9b690da70c3a4a7d8fa472a4529f7b6d257cf7ee
<mask token>


class VersionMiddleware:
    <mask token>
    <mask token>

<mask token>


class VersionMiddleware:
    <mask token>

    def __call__(self, request):
        response = self.get_response(request)
        response['X-Project-Version'] = settings.PROJECT_VERSION
        return response

<mask token>


class VersionMiddleware:

    def __init__(self, get_response):
        self.get_response = get_response

    def __call__(self, request):
        response = self.get_response(request)
        response['X-Project-Version'] = settings.PROJECT_VERSION
        return response

from django.conf import settings


class VersionMiddleware:

    def __init__(self, get_response):
        self.get_response = get_response

    def __call__(self, request):
        response = self.get_response(request)
        response['X-Project-Version'] = settings.PROJECT_VERSION
        return response

from django.conf import settings


class VersionMiddleware:
    def __init__(self, get_response):
        self.get_response = get_response

    def __call__(self, request):
        response = self.get_response(request)
        response["X-Project-Version"] = settings.PROJECT_VERSION
        return response
