added payments, epay and other stuff
parent
0ffd79cee9
commit
680a508d42
@ -0,0 +1,7 @@
|
||||
from django.urls import path
|
||||
from .views import validate_container
|
||||
|
||||
urlpatterns = [
|
||||
# ... your other urls
|
||||
path('api/validate-container/<str:number>/', validate_container, name='validate_container'),
|
||||
]
|
||||
@ -0,0 +1,6 @@
|
||||
from django.http import JsonResponse
|
||||
from common.utils.utils import check_container_number_validity
|
||||
|
||||
def validate_container(request, number):
|
||||
is_valid = check_container_number_validity(number)
|
||||
return JsonResponse({'valid': is_valid})
|
||||
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>$Title$</title>
|
||||
</head>
|
||||
<body>
|
||||
$END$
|
||||
</body>
|
||||
</html>
|
||||
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>$Title$</title>
|
||||
</head>
|
||||
<body>
|
||||
$END$
|
||||
</body>
|
||||
</html>
|
||||
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>$Title$</title>
|
||||
</head>
|
||||
<body>
|
||||
$END$
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Reference in New Issue