SMW-Upload/seduttomachineworks_project/views.py

20 lines
537 B
Python

from django.shortcuts import render
from django.views.decorators.clickjacking import xframe_options_exempt
from django.http import Http404
from django.conf import settings
@xframe_options_exempt
def quote_upload(request):
"""
Simple embeddable quote upload box.
TODO: Implement file upload and email integration
"""
return render(request, "quote_upload.html")
def test_iframe(request):
if not settings.DEBUG:
raise Http404("Not available in production")
return render(request, "test_iframe.html")