# Path: borme/mixins.py
# class CacheMixin(object):
#     cache_timeout = 3600
# 
#     def get_cache_timeout(self):
#         return self.cache_timeout
# 
#     def dispatch(self, *args, **kwargs):
#         return cache_page(self.get_cache_timeout())(super(CacheMixin, self).dispatch)(*args, **kwargs)


from django.conf import settings
from django.http import HttpResponse
from django.template.loader import get_template
from django.views.generic.base import TemplateView
from borme.mixins import CacheMixin
from pathlib import Path




class AvisoLegalView(CacheMixin, TemplateView):
    template_name = "libreborme/aviso_legal.html"

    def get_context_data(self, **kwargs):
        context = super(AvisoLegalView, self).get_context_data(**kwargs)
        context['lopd'] = settings.LOPD
        return context



# Path: borme/mixins.py
# class CacheMixin(object):
#     cache_timeout = 3600
# 
#     def get_cache_timeout(self):
#         return self.cache_timeout
# 
#     def dispatch(self, *args, **kwargs):
#         return cache_page(self.get_cache_timeout())(super(CacheMixin, self).dispatch)(*args, **kwargs)


# Path: libreborme/views.py
from django.conf import settings
from django.http import HttpResponse
from django.template.loader import get_template
from django.views.generic.base import TemplateView
from borme.mixins import CacheMixin
from pathlib import Path





class AvisoLegalView(CacheMixin, TemplateView):
    template_name = "libreborme/aviso_legal.html"

    def get_context_data(self, **kwargs):
        context = super(AvisoLegalView, self).get_context_data(**kwargs)
        context['lopd'] = settings.LOPD
        return context



class AboutView(CacheMixin, TemplateView):