2024-11-05 11:46:00 +01:00
|
|
|
from django.shortcuts import render
|
2024-11-07 08:17:10 +01:00
|
|
|
import uuid
|
|
|
|
|
|
|
|
def make_user_id():
|
|
|
|
return str(uuid.uuid4()).replace('-', '')
|
2024-11-05 11:46:00 +01:00
|
|
|
|
2024-11-05 16:52:47 +01:00
|
|
|
def index(request):
|
|
|
|
result = request.GET.get('result', None)
|
2024-11-07 08:17:10 +01:00
|
|
|
return render(request, 'index.html', {
|
|
|
|
'result': result,
|
|
|
|
'user_id': make_user_id(),
|
|
|
|
})
|
2024-11-05 16:52:47 +01:00
|
|
|
|
|
|
|
def about_us(request):
|
2024-11-07 08:17:10 +01:00
|
|
|
return render(request, 'about_us.html', {
|
|
|
|
'user_id': make_user_id(),
|
|
|
|
})
|