djangonix/test_assets/views.py
2024-06-09 15:20:20 +02:00

16 lines
415 B
Python

import json
from django.conf import settings
from django.http import HttpResponse
def test_settings(request):
return HttpResponse(settings.SMOKE_TEST, content_type="text/plain")
def test_secrets(request):
return HttpResponse(settings.SECRETS_SMOKE_TEST, content_type="text/plain")
def test_json(request):
return HttpResponse(json.dumps(settings.JSON_SMOKE_TEST), content_type="application/json")