2021-08-22 20:10:29 +02:00
|
|
|
from django.http import HttpResponse
|
2021-08-28 19:52:07 +02:00
|
|
|
from django.views.decorators.cache import cache_page
|
2021-08-22 20:10:29 +02:00
|
|
|
|
2021-08-29 22:09:22 +02:00
|
|
|
from utils.assets import get_css
|
2021-08-22 20:10:29 +02:00
|
|
|
|
2021-09-07 17:05:03 +02:00
|
|
|
# @cache_page(60 * 15)
|
2021-08-22 20:10:29 +02:00
|
|
|
def debug_css(request):
|
|
|
|
css, source_map = get_css(debug=True)
|
|
|
|
return HttpResponse(css, content_type="text/css")
|
|
|
|
|
2021-09-07 17:05:03 +02:00
|
|
|
# @cache_page(60 * 15)
|
2021-08-22 20:10:29 +02:00
|
|
|
def debug_css_sourcemap(request):
|
|
|
|
css, source_map = get_css(debug=True)
|
|
|
|
return HttpResponse(source_map, content_type="application/json")
|