I don't know if conditional rendering a whole HTML template is good or bad? I understand that we can do this on templates but just wanna know if this is okay?
In my view,
if profile.exists():
return render(request, 'index.html')
else:
return render(request, 'nodata_index.html')
Is this good, or shall I do if template condition on templates? Is there any problem using the above method or shall go with template formats