out env
All checks were successful
Auto-Deploy-Shop / deploy (push) Successful in 6s

This commit is contained in:
2026-01-24 22:34:06 +03:00
parent 19c30d4387
commit 6a21f84172
2 changed files with 13 additions and 2 deletions

View File

@@ -1,6 +1,11 @@
import os
from django.shortcuts import render
from .models import Product
def product_list(request):
items = Product.objects.all()
return render(request, 'products/list.html', {'products': items})
env_type = os.getenv("ENV_TYPE", "undefined")
return render(request, 'products/list.html', {
'products': items,
'env_type': env_type
})