avryhof / django-pwa-webpush

A quick and dirty merge of django-pwa and django-webpush
GNU General Public License v3.0
9 stars 6 forks source link

Light changes #1

Open chrisamow opened 4 years ago

chrisamow commented 4 years ago

Hi @avryhof thanks for doing this it saved me some time.

This might also save others some time - didn't test it on Django3 yet...

On Django 2.0.5 python 3.6.4 a small change is needed in models.py from six import python_2_unicode_compatible # was from django.utils.encoding

and in the your app's settings.py, this was needed

INSTALLED_APPS

'django.contrib.sites',         # only required for pwa_webpush

ALSO

SITE_ID = 1 # only required for pwa_webpush

avryhof commented 4 years ago

Thanks. I have changed the import to the six decorator, and removed the django.contrib.sites requirement.