본문 바로가기 메뉴 바로가기

Programming Kindergarten

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

Programming Kindergarten

검색하기 폼
  • j0n9m1n1 (336)
    • OS (3)
      • Unix & Linux (1)
    • C, C++ (239)
      • 데이터구조 & 자료구조 (13)
      • Baekjoon Online Judge (186)
      • 정올 (15)
      • Project Euler (2)
      • openCV (2)
      • MFC (0)
    • Java (16)
      • for Class, Project (16)
    • Android (2)
      • for Class, Project (2)
    • Python (21)
      • Django (1)
      • Note (10)
      • PyQt5 (3)
    • Trip (1)
      • OSAKA & KYOTO (1)
    • Others (42)
      • Computer (5)
      • Review (34)
  • 방명록

Python/Django (1)
Django FirebaseCloudMessaging 예제 (장고 파이어베이스 클라우드 메시징 예제 )

필수 코드console: pip install requestsimport requests 123456789101112131415import requestsimport json @csrf_exemptdef push_to_client(lms_id, list_diff_subjects, list_diff_reports): url = 'https://fcm.googleapis.com/fcm/send' headers = { 'Authorization': 'key=longlongKey', 'Content-Type': 'application/json; UTF-8', } # 한명 지정이면 to, 여럿일 경우 registration_ids[] content ={'to': token, 'notification': { 'ti..

Python/Django 2018. 11. 9. 10:02

티스토리 방명록

이전 1 다음
Previous Next
최근에 올라온 글
  • powershell 핑 시간 로그(ping log⋯
  • REALFORCE R3TL BT 블랙 저소음 45⋯
  • LH청년전세임대 재계약(증액) 후기
  • 젠하이저 HD600(M2 맥북, 데스크탑 테스트)
최근에 달린 댓글
  • C99로 제출하세요
  • ♪♪~♬아 컴파일 에러뜨잖아
  • 포스팅 잘 봤어요.
  • 개인적으로는 타이핑하고 마우스 움직이는 걸로는 방해까지⋯
Total
183,379
Today
8
Yesterday
92

Blog is powered by Tistory / Designed by Tistory
Contact: j0n9m1n1@gmail.com

티스토리툴바