inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

묻고 답해요

172만명의 커뮤니티!! 함께 토론해봐요.

DJango에서 나오는 에러를 react에 notification으로 나오게 하고 싶습니다.

미해결

파이썬/장고 웹서비스 개발 완벽 가이드 with 리액트

안녕하세요! 강사님 강의 잘 보고있습니다. 강의보면서 사소하게 개인 포르젝트를 만들어보는 중입니다. 리액트로 회원가입 폼까지 구현한 뒤 이메일(아이디)가 중복된 다든지 비밀번호와 비밀번호가 일치하지 않는 다는 에러 메시지가 장고 cmd창에서는 확인이 가능합니다. 아래는 중복되는 이메일로 가입하려해서 나온 에러입니다. django.db.utils.IntegrityError: (1062, "Duplicate entry 'testuser@gmail.com' for key 'accounts_user.email'") 이런식 으로 에러가 뜹니다. 이런 에러는 서버쪽에서는 확인이 가능하지만 리액트로 가져와서 회원들이 가입할 때 확인할 수 있게 하고 싶은데 어떤식으로 가져와야할지 잘 모르겠어서 질문드립니다. 아래는 시리얼라이저 회원가입 유효성 검사 부분입니다. class SignupSerializer(serializers.ModelSerializer): password = serializers.CharField( write_only = True, required = True ) confirm_password = serializers.CharField( write_only = True, required = True ) email = serializers.EmailField( required = True ) nickname = serializers.CharField( required = True ) def create ( self , validated_data): user = User.objects.create( email =validated_data[ "email" ] , nickname =validated_data[ "nickname" ]) user.set_password(validated_data[ "password" ]) user.save() return user def validate ( self , data): if not data.get( 'password' ) or not data.get( 'confirm_password' ): raise serializers.ValidationError( "Please enter a password and " "confirm it." ) if data.get( 'password' ) != data.get( 'confirm_password' ): raise serializers.ValidationError( "Those passwords don't match." ) return data class Meta: model = User fields = [ "pk" , "email" , "password" , "confirm_password" , "nickname" ] 리액트에서는 유효성 검사 커스터 마이징이랑 rules를 활용하여 닉네임 공백사용 금지나 비밀번호 입력시 특수문자와 대문자 길이제한 등을 구현해 놓은 상태입니다. 회원가입은 잘 작동하는데 중복이나 password와 confirm_password가 일치하지 않을 때 django에서 뜨는 에러를 어떻게 리액트로 가져올 수 있을까요?

  • django
  • docker
  • error
  • python
  • react
웹 독학러 댓글 1 좋아요 0 조회수 607

저도 자료형 제어문등의 파일이 나오지 않습니다.

미해결

Jupyter Notebook으로 시작하는 Python

안녕하세요 저도 위의 분과 똑같이 강의자료를 다운받아도 자료형 제어문 등의 파일이 나타나지 않습니다. 해결방법을 알 수 있을까요?

  • python
abcodmss 댓글 2 좋아요 0 조회수 368

앵커박스

미해결

[개정판] 딥러닝 컴퓨터 비전 완벽 가이드

계속 이해해보려고 구글링했는데 뭔가 속시원게 해답이 안나와서 한번만 더 질문하겠습니다. ㅜㅜ 지난강의에서 피처맵의 그리드포인트 마다 앵커 9개를 매핑한다고 하셨는데, 이번 강의에서 RPN 네트워크는 피처맵을 이진 분류 하기 까지 그리드포인트 매핑과정이 없어서 뭔가 연결이 잘 안되는 것 같습니다. 다른 문제는 5:50초에 40x50x9 는 그리드포인트마다 9개의 앵커박스를 나타내는 것이고, 앵커박스마다 FG인지 BG인지 판단한다고 하셨는데, 제 머리로는 1x1 컨볼루션을 하고 9output을 뽑는다는게 잘 이해가 안되는 것 같습니다. 1x1 컨볼루션은 차원의 축소를 하는 역할을 하는것인데 9가지 모양의 그리드를 어떻게 1x1 컨볼루션 40x50피처맵 포인트마다 연결을 시키는 것인지 잘 이해가 되지 않습니다...ㅜㅜ

  • python
  • tensorflow
  • keras
  • 딥러닝
  • 컴퓨터-비전
  • 머신러닝 배워볼래요?
jack 댓글 1 좋아요 0 조회수 285

python 기본환경

미해결

프로그래밍 시작하기 : 파이썬 입문 (Inflearn Original)

강의를 보니까 예를 들어서 print 를 입력하시면 print() 에 대한 sperator, end 옵션 등 설명이 달리던데 전 그런 설명이 전혀 안뜨더라구요 어떤 설정을 해야하는건가요?

  • python
  • python
이창민 댓글 1 좋아요 0 조회수 196

python 기본환경

미해결

프로그래밍 시작하기 : 파이썬 입문 (Inflearn Original)

. 안녕하세요 코딩하다가 보면 오류가 안뜨고 실행이 잘 되더라도 우측에 이런 문구가 뜨더라요 뜨는 이유와 안뜨게 하는 방법이 있을까요?

  • python
  • python
  • 환경
이창민 댓글 1 좋아요 0 조회수 295

Atom과 vscode에서 파이썬 연동과 추가 프로그램들 installing 하는데 문제가 있습니다

미해결

프로그래밍 시작하기 : 파이썬 입문 (Inflearn Original)

Atom에서는 Installing “autocomplete-python@1.17.0” failed. Show output… Compiler tools not found Packages that depend on modules that contain C/C++ code will fail to install. Read here for instructions on installing Python and Visual Studio. Run apm install --check after installing to test compiling a native module. 문구가 뜨며 install이 안되고 Vscode에서도 python인식을 못하며 다운로딩이 안됩니다. 군인이라 사지방컴퓨터라 제한적인 것인지 문제가 뭔지 모르겠습니다. atom에서 해결법을 알 수 있을지 궁금합니다.

  • python
  • atom
  • python
  • vscode
  • army
  • 군인
재오 댓글 1 좋아요 0 조회수 368

실행시 글자가 깨집니다.

미해결

파이썬 무료 강의 (활용편1) - 추억의 오락실 게임 만들기 (3시간)

코드 실행시 터미널 부분에 글자가 깨져서 나옵니다. 인코딩을 변경하여 진행하면, 실행이 안되고요...

  • python
  • GUI
  • pygame
Yun Jeong Oh 댓글 1 좋아요 0 조회수 337

리스트2(실습-5) 질문

미해결

파이썬(Python) 기초부터 실무까지 part.2

안녕하세요 수업을 청강하고 있는 학생입니다 다름이 아니라, 실습 코드중 이해가 안가는게 있어 질문 남깁니다. def number_search(list, key): cnt = 0 for i in range(len(list)): if key == list[i]: cnt += 1 else: return -1 return cnt listNum = [1,4,5,6,7,8,98,9,1] print(number_search(listNum, 1)) 해당 코드에 있어서, 키값과 리스트의 값이 같지 않다면, return값으로 -1을 보내는데, 첫번째 탐색을 할때 부터 맞지 않는다면, return 값을 반환하게 되며, 해당 함수를 빠져나와, 리스트 끝까지 검색이 되지 않지 않나 싶어서 질문을 남깁니다. 강의에 나온 코드를 그대로 러닝해보아도, 같은 결과값이 나와 질문드립니다.

  • python
댓글 1 좋아요 0 조회수 214

log 변환을 하는 이유

미해결

[개정판] 파이썬 머신러닝 완벽 가이드

데이터 분석을 하던 중 target 값이 왜 로그변환이 되어야 하는지 잘 모르겠습니다. 왜 로그 변환을 하는 것인가요?

  • 통계
  • python
  • 머신러닝 배워볼래요?
잉걸불 댓글 1 좋아요 0 조회수 1201

test_module 내에서 경로 등록

미해결

프로그래밍 시작하기 : 파이썬 입문 (Inflearn Original)

안녕하세요 저도 import 파일을 발견하지 못한다는 ModuleNotFound 에러에 직면했었습니다. 그래서 test_module 파일 내에서 sys.path.append('경로') -> 이 명령어를 넣어줬더니 import가 문제없이 잘 되네요. 이렇게 해결해도 되는 건가 싶어 글 적었습니다ㅎㅎ

  • python
wndudrla1011 댓글 1 좋아요 0 조회수 299

영어 대소문자

미해결

입문자를 위한 파이썬 기초 따라잡기

다른거는 소문자로 시작해도 작동이 되던데 왜 True, False는 대문자로 시작해야 코드가 실행 되는 건가요? 변수가 아니라서 그런가요?

  • python
  • python
장인서 댓글 0 좋아요 0 조회수 250

명령 프롬프트

미해결

입문자를 위한 파이썬 기초 따라잡기

명령 프롬프트 cd Desk top 입력하니까 저장된 경로를 찾을 수 없다고 뜨는데 왜 그러는 건가요?

  • 명령프롬프트
  • python
  • idle
장인서 댓글 0 좋아요 0 조회수 224

회원 테스트 NullPointException 에러

해결됨

실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발

강의자료로 제공해주신 소스코드를 모두 확인했는데도 계속 NullPointException 에러가 납니다. 한 가지 다른 점이 있다면 @RunWith를 @ExtendWith으로 변경했습니다. 이유를 알 수 있을까요? java.lang.NullPointerException at jpabook.jpashop.service.MemberServiceTest.회원가입(MemberServiceTest.java:30) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.ParentRunner.run(ParentRunner.java:413) at org.junit.runner.JUnitCore.run(JUnitCore.java:137) at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:69) at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:33) at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:235) at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:54)

  • springboot
  • nullpointexception
  • 웹앱
  • error
  • spring-boot
  • test
  • spring
  • JPA
  • java
hcryoo76 댓글 1 좋아요 0 조회수 286

Bitnami 설치 관련 질문입니다

미해결

- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. PHP 학습을 위해 비트나미를 PC에 설치했습니다. 그런데 설치 도중에 It seems you have an antivirus running. In some cases, this may slow down or interfere the installation of the software. Please visit the following link to learn more about this. 라는 문구가 떴는데 설치는 문제 없이 되는 것 같아 대수롭지 않게 넘어갔었습니다. 그런데 며칠 사용하고 나니 아파치가 정상적으로 실행되지 않습니다. 확실치는 않지만, norton 백신 프로그램에서 (ip)의 침입 시도가 차단되었습니다. 라는 메시지가 뜬 이후로 문제가 있는듯합니다. 도중에 아파치 웹서버를 재시작하는 경우가 있어 로그가 조금 길지만 비트나미 에러 로그를 통해 봤을 때는 다음과 같이 나왔습니다. [Sun Jan 23 22:10:30.258215 2022] [mpm_winnt:notice] [pid 6176:tid 476] AH00422: Parent: Received shutdown signal -- Shutting down the server. [Sun Jan 23 22:10:32.283605 2022] [mpm_winnt:notice] [pid 10760:tid 612] AH00364: Child: All worker threads have exited. [Sun Jan 23 22:10:32.303958 2022] [mpm_winnt:notice] [pid 6176:tid 476] AH00430: Parent: Child process 10760 exited successfully. [Sun Jan 23 22:12:20.085106 2022] [ssl:warn] [pid 20908:tid 648] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name [Sun Jan 23 22:12:20.125116 2022] [ssl:warn] [pid 20908:tid 648] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name [Sun Jan 23 22:12:20.147121 2022] [mpm_winnt:notice] [pid 20908:tid 648] AH00455: Apache/2.4.51 (Win64) OpenSSL/1.1.1l PHP/7.4.27 configured -- resuming normal operations [Sun Jan 23 22:12:20.147121 2022] [mpm_winnt:notice] [pid 20908:tid 648] AH00456: Apache Lounge VC15 Server built: Oct 8 2021 10:03:59 [Sun Jan 23 22:12:20.147121 2022] [core:notice] [pid 20908:tid 648] AH00094: Command line: 'C:\\Bitnami\\WAMPST~1.27-\\apache2\\bin\\httpd.exe -d C:/Bitnami/wampstack-7.4.27-0/apache2 -f C:\\Bitnami\\WAMPST~1.27-\\apache2\\conf\\httpd.conf' [Sun Jan 23 22:12:20.153123 2022] [mpm_winnt:notice] [pid 20908:tid 648] AH00418: Parent: Created child process 8232 [Sun Jan 23 22:12:20.986920 2022] [ssl:warn] [pid 8232:tid 540] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name [Sun Jan 23 22:12:21.028930 2022] [ssl:warn] [pid 8232:tid 540] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name [Sun Jan 23 22:12:21.048935 2022] [mpm_winnt:notice] [pid 8232:tid 540] AH00354: Child: Starting 64 worker threads. 현재 이 로그도 막 재설치한 상태이기에 구동은 됩니다만, 이전에도 이러다가 아파치 웹 서버가 작동하지 않았기에 이또한 문제가 될 것이라 생각됩니다. 비트나미에서는 다음 링크를 통해 설정을 바꿔주라고 했는데 백신 프로그램도 다르고 해서 어떤 부분을 어떻게 바꿔줘야 할지도 모르겠습니다.. https://bitnami.com/antivirus

  • 비트나미
  • bitnami
  • error
  • apache
  • 아파치
  • 오류
시원한 박쥐 댓글 0 좋아요 0 조회수 343

Ground Truth로만 학습한다는 것에 대한 질문

해결됨

[개정판] 딥러닝 컴퓨터 비전 완벽 가이드

안녕하세요. 강의 4분 40초경부터 설명이 시작되는, Ground Truth로만 학습한다는 것이 잘 이해가 되지 않아 질문 올립니다. IOU를 구하기 위해서는 G.T값 이외의 비교 대상이 필요하다 생각하는데, class를 G.T로만 정한다는 것이 이해가 잘 안되네요.. 답변해주신다면 정말 감사하겠습니다!

  • 머신러닝 배워볼래요?
  • keras
  • python
  • 컴퓨터-비전
  • 딥러닝
  • tensorflow
alsdn2530 댓글 1 좋아요 0 조회수 292

반복문 피보나치 수열 질문

미해결

파이썬(Python) 기초부터 실무까지 part.1

안녕하세요 수업을 듣고 있는 수강생입니다. 다름이 아니라, 피보나치 수열에서 해당 코드는 입력받은 수까지 계속 연산을 하고 있으며, 단순히 프린트 하는 명령이 없기 때문에 프린트를 하지 않는것으로 보이는데, 해당 입력 값이 13일 때, for문 자체를 빠져나가게 하는 방법이 있을까요? else : final_fibo = n1 + n2 n1 = n2 n2 = final_fibo if final_fibo < insertNumber: print (final_fibo , " " )

  • python
댓글 2 좋아요 0 조회수 461

자료형 제어문이 나오지 않습니다.

미해결

Jupyter Notebook으로 시작하는 Python

주피터 노트북 실행까지는 되었으나 자료형 제어문등이 나오지 않습니다.

  • python
Jung Jin-woong 댓글 2 좋아요 0 조회수 328

/와 //

미해결

입문자를 위한 파이썬 기초 따라잡기

/ 와//둘 다 나누기로 몫이 나오나요? 코드 실행했을때 값이 다르게 나와서요

  • python
  • python
장인서 댓글 0 좋아요 0 조회수 391

에디터 모드 calc

미해결

입문자를 위한 파이썬 기초 따라잡기

에디터 모드에 작성한 calc가 실행된게 왜 쉘모드에서 보여지는 건가요?

  • python
  • python
  • idle
장인서 댓글 0 좋아요 0 조회수 312

인기 태그

인프런 TOP Writers

주간 인기글