I'm trying to run my project but it is showing like there is a operational error which is none type has no attribute image_tag. Below here is my coding
from . import models
def get_logo(request):
logo=models.AppSetting.objects.first()
data={
'logo':logo.image_tag
}
return data
Can anyone please help me to solve this error quickly?
Can you please specify which package you are importing "models" from? It would be helpful if you describe what exactly you are trying to achieve here with this "get_logo" function. Thanks