python/Django

[Django] PHP exit 와 같은 기능 - 디버깅 기법

http://portfolio.wonpaper.net 2022. 4. 24. 06:14

ASP

response.Write "테스트"
response.End

 

PHP

echo "테스트";
exit;

 

Django

from django.http import HttpResponse
return HttpResponse(str('테스트'))



https://stackoverflow.com/questions/2747554/equivalent-of-php-echo-something-exit-with-python-django