Skip to content

RuntimeError: Model class push_notifications.models.GCMDevice doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS. #472

Open
@trottomv

Description

@trottomv
In [90]: from push_notifications.models import  APNSDevice, GCMDevice

---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
<ipython-input-90-565263c6f1a8> in <module>()
----> 1 from push_notifications.models import *

~/python/annual-meeting-backoffice/backofficenv/lib/python3.5/site-packages/push_notifications/models.py in <module>()
     84 
     85 
---> 86 class GCMDevice(Device):
     87         # device_id cannot be a reliable primary key as fragmentation between different devices
     88         # can make it turn out to be null and such:

~/python/annual-meeting-backoffice/backofficenv/lib/python3.5/site-packages/django/db/models/base.py in __new__(cls, name, bases, attrs, **kwargs)
     93                         "Model class %s.%s doesn't declare an explicit "
     94                         "app_label and isn't in an application in "
---> 95                         "INSTALLED_APPS." % (module, name)
     96                     )
     97 

RuntimeError: Model class push_notifications.models.GCMDevice doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.

someone can help me?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions