X
X

Select Your Currency

Türk Lirası $ US Dollar
X
X

Select Your Currency

Türk Lirası $ US Dollar
Yıllık Satın Alımlarda %15 İndirim: Şimdi Tasarruf Edin! Detaylı Bilgi İçin Tıklayın!

Knowledge Base

HomepageKnowledge BaseGeneralSolution to Fixed 'SafeText' object...

Solution to Fixed 'SafeText' object has no attribute 'status_code' Error

If you are getting the following error in your Django project, the reason for the error is that the value you returned does not have a response type. So, for example, you need to send it as return HttpResponse(.....).

For example :

def exchange rate(request):
currency = CurrencyCalculation.objects.last()
return HttpResponse('{}'.format(currencies.dollars))

Can't find the information you're looking for?

You have examined the knowledge base in detail, but if you cannot find the information you need,

Create a Support Ticket
Did you find it useful?
(138 times viewed. / 0 people found helpful.)