Answer the question
In order to leave comments, you need to log in
How to pass a value to a django function?
There is a function:
def Shop(request, current_server = "Test_server"):
items = Shop_cat.objects.filter(mod_id__server_mods__name=current_server)
return render(request, 'donate/shop.html', {"shop_list": items})
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question