checkout/src/common/views.py

15 lines
255 B
Python
Raw Normal View History

2023-03-25 21:06:04 +01:00
from django.shortcuts import redirect, render
2022-04-24 15:51:25 +02:00
2022-04-24 18:59:04 +02:00
2023-03-25 20:01:14 +01:00
def home(_request):
2022-04-24 18:59:04 +02:00
return redirect("purchase:new")
2023-03-25 21:06:04 +01:00
def ping(request):
return render(request, "common/ping.html", {})
2023-03-25 21:14:42 +01:00
def error_check(_request):
msg = "Error check"
raise ValueError(msg)