2
我可以通過視圖調用Flatpage嗎?說我有這樣的代碼:從視圖調用flatpage
def myview(request):
if request.subdomain != "www":
return HttpResponseRedirect("http://"+request.subdomain+".mydomain/login/")
else:
call the flatpage here...