커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
5-5 몽고디비 데이터 입력이 올바르게 되지 않아요
undefined주차
북마크
김*슬
댓글
10
추천
0
조회수
27
조회수
27
답변 완료

* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.

* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.


강사님 화면처럼 [이루고 싶은 것을 입력하세요]란 입력한 문장이 몽고디비 데이터로 들어가질 않고 이상한 코드가 써집니다..



스파르타 즉문즉답

왼쪽의 강사님 화면엔 '내 손으로 웹페이지 만들기'가 정상입력 되는데 저는 그게 안돼요(하단 이미지 첨부)

스파르타 즉문즉답





user@DESKTOP-SH95DHU MINGW64 ~/Desktop/sparta/projects/04.bucket
$ source c:/Users/user/Desktop/sparta/projects/04.bucket/venv/Scripts/activate
(venv) 
user@DESKTOP-SH95DHU MINGW64 ~/Desktop/sparta/projects/04.bucket
$ c:/Users/user/Desktop/sparta/projects/04.bucket/venv/Scripts/python.exe c:/Users/user/Desktop/sparta/projects/04.bucket/app.py
 * Serving Flask app 'app'
 * Debug mode: on
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:5000
 * Running on http://192.168.219.102:5000
Press CTRL+C to quit
 * Restarting with stat
 * Debugger is active!
 * Debugger PIN: 695-650-508
127.0.0.1 - - [02/Apr/2023 14:31:35] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [02/Apr/2023 14:31:36] "GET /bucket HTTP/1.1" 200 -
127.0.0.1 - - [02/Apr/2023 14:31:38] "GET /favicon.ico HTTP/1.1" 404 -
샘플데이터
127.0.0.1 - - [02/Apr/2023 14:31:50] "POST /bucket HTTP/1.1" 200 -
127.0.0.1 - - [02/Apr/2023 14:31:51] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [02/Apr/2023 14:31:52] "GET /bucket HTTP/1.1" 200 -
 * Detected change in 'c:\\Users\\user\\Desktop\\sparta\\projects\\04.bucket\\app.py', reloading
 * Restarting with stat
 * Debugger is active!
 * Debugger PIN: 695-650-508
 * Detected change in 'c:\\Users\\user\\Desktop\\sparta\\projects\\04.bucket\\app.py', reloading
Exception in thread Thread-1:
Traceback (most recent call last):
  File "C:\Users\user\AppData\Local\Programs\Python\Python38\lib\threading.py", line 932, in _bootstrap_inner
    self.run()
  File "C:\Users\user\AppData\Local\Programs\Python\Python38\lib\threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Users\user\Desktop\sparta\projects\04.bucket\venv\lib\site-packages\werkzeug\serving.py", line 766, in serve_forever
    super().serve_forever(poll_interval=poll_interval)
  File "C:\Users\user\AppData\Local\Programs\Python\Python38\lib\socketserver.py", line 232, in serve_forever
    ready = selector.select(poll_interval)
  File "C:\Users\user\AppData\Local\Programs\Python\Python38\lib\selectors.py", line 323, in select
    r, w, _ = self._select(self._readers, self._writers, [], timeout)
    r, w, x = select.select(r, w, w, timeout)OSError: [WinError 10038] 소켓 이외의 개체에 작업을 시도했습니다
 * Debugger PIN: 695-650-508
127.0.0.1 - - [02/Apr/2023 14:41:38] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [02/Apr/2023 14:41:38] "GET /bucket HTTP/1.1" 200 -
127.0.0.1 - - [02/Apr/2023 14:42:04] "POST /bucket HTTP/1.1" 200 -
127.0.0.1 - - [02/Apr/2023 14:42:06] "GET / HTTP/1.1" 200 -127.0.0.1 - - [02/Apr/2023 14:42:06] "GET /bucket HTTP/1.1" 200 -
127.0.0.1 - - [02/Apr/2023 14:46:22] "POST /bucket HTTP/1.1" 200 -
127.0.0.1 - - [02/Apr/2023 14:46:23] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [02/Apr/2023 14:46:24] "GET /bucket HTTP/1.1" 200 -
 * Detected change in 'c:\\Users\\user\\Desktop\\sparta\\projects\\04.bucket\\app.py', reloading
 * Debugger PIN: 695-650-508




취소
 공유
취소
댓글 0
댓글 알림
나의얼굴