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

Lifelog

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

Lifelog

검색하기 폼
  • j0n9m1n1 (409)
    • OS (14)
      • Windows (1)
      • Linux (3)
      • Home Assistant (6)
    • C, C++ (25)
      • 데이터구조 & 자료구조 (13)
      • Baekjoon Online Judge (195)
      • 정올 (15)
      • Project Euler (2)
      • openCV (2)
      • MFC (0)
    • Java (16)
      • for Class, Project (16)
    • Android (2)
      • for Class, Project (2)
    • Python (15)
      • Django (1)
      • Note (10)
      • PyQt5 (3)
    • Trip (1)
      • OSAKA & KYOTO (1)
    • Others (64)
      • Computer (9)
      • Review (47)
    • Cook (19)
      • 더 푸드 랩(The Food Lab) (14)
      • 만개의레시피 (4)
      • 유튜브 (0)
  • 방명록

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
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday

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

티스토리툴바