first push

This commit is contained in:
2025-05-23 14:44:12 +08:00
commit abefd1b19b
817 changed files with 580289 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
from django.shortcuts import render
from .models import *
from django.contrib.auth.decorators import login_required
from django.contrib.auth.decorators import user_passes_test
def check_admin(user):
return user.is_superuser
@login_required
@user_passes_test(check_admin)
def support_faq(request):
all_faq_list = Support.objects.all()
context = {
'sidebar': 'support',
'submenu': 'faq',
'all_faq_list': all_faq_list,
'title': "FAQs"
}
return render(request, 'support/frequently_ask_questions.html', context=context)