1. Patrick Guido Arminio
  2. Project Mensa

Commits

Patrick Guido Arminio  committed ebbbcee

Fix settings e requirements

  • Participants
  • Parent commits 80e0651
  • Branches master

Comments (0)

Files changed (2)

File projectmensa/menu/notifications.py

View file
 from gcm import GCM
 
+from django.conf import settings
+
 from rest_framework.renderers import JSONRenderer
 
 
     from .models import Device
     from .serializers import MenuSerializer
 
-    gcm = GCM('AIzaSyBZHot2HdSSZiVBVPaAql1M-T93zFtZxeY')
+    gcm = GCM(settings.GCM_API_KEY)
     data = {
         'title': title,
         'menu': JSONRenderer().render(MenuSerializer(menu).data)

File requirements.txt

View file
 django-mailchimp==0.1.30
 django-ses==0.4.1
 django-storages==1.1.4
+djangorestframework==2.1.6
 gunicorn==0.14.6
 nltk==2.0.2
 pdfminer==20110515
 psycopg2==2.4.5
+python-gcm==0.1.4
 querystring-parser==1.1
 requests==0.14.0
 wsgiref==0.1.2
-djangorestframework==2.1.6