Skip to Content
Head First Python, 개정판 : 스스로 질문하며 답을 찾는 파이썬 학습서(Python 3)
book

Head First Python, 개정판 : 스스로 질문하며 답을 찾는 파이썬 학습서(Python 3)

by 우정은, 폴 배리
December 2017
Beginner
624 pages
15h 38m
Korean
Hanbit Media, Inc.
Content preview from Head First Python, 개정판 : 스스로 질문하며 답을 찾는 파이썬 학습서(Python 3)
296 Chapter 6
소스 사용하기
소스 보기 기능으로 가공되지 않은 데이터
확인하기
log
_
request
함수는 웹 요청이 발생했을 때 두 가지 데이터(요청 객체와
search4letters
호출한 결과)를 저장한다는 사실을 기억하세요. 하지만 /
viewlog
로 접속해 로그를 확인해보니 결과
데이터만 출력되었습니다. 소스 보기 기능으로 웹앱에서 반환한 가공되지 않은 데이터를 확인해보면
요청 객체에 무슨 일이 일어났는지 알 수 있지 않을까요?
다음은 파이어폭스로 가공되지 않은 데이터를 확인한 모습입니다. 각 요청 객체의 출력 부분이
빨간색으로 표시된 걸로 보아 로그 데이터에 뭔가 오류가 있는 것 같습니다.
요청 객체 데이터도 로그로
저장되었지만 어떤 이유에서인지
브라우저가 요청 객체 데이터를
화면으로 출력하지 않았네요.
요청 객체가 왜 출력되지 않았는지 설명하기는 조금 어렵지만 파이어폭스가 빨간색으로
표시한 부분을 보면 무슨 일이 일어났는지 이해하는 데 도움이 됩니다. 요청 데이터
자체에는 문제가 없어 보이네요. 하지만 데이터를 감싸는 꺽쇠괄호(
<
>
) 때문에
브라우저에서 무슨 일이 일어난 것 같습니다. 브라우저는 꺽쇠괄호를
HTML
태그로
처리합니다. 그런데
<
Request
>
는 유효한
HTML
태그가 아니므로 요즘 브라우저는
이 태그를 무 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

NGINX 쿡북 : 112가지 레시피로 배우는 고성능 부하분산, 보안, 서버 배포와 관리

NGINX 쿡북 : 112가지 레시피로 배우는 고성능 부하분산, 보안, 서버 배포와 관리

노승현, 데릭 디용기
몽고DB 완벽 가이드(3판): 실전 예제로 배우는 NoSQL 데이터베이스 기초부터 활용까지

몽고DB 완벽 가이드(3판): 실전 예제로 배우는 NoSQL 데이터베이스 기초부터 활용까지

김인범, 크리스티나 초도로우, 섀넌 브래드쇼, 오언 브라질

Publisher Resources

ISBN: 9791162240281