Open chrisamow opened 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
'django.contrib.sites', # only required for pwa_webpush
SITE_ID = 1 # only required for pwa_webpush
Thanks. I have changed the import to the six decorator, and removed the django.contrib.sites requirement.
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
ALSO
SITE_ID = 1 # only required for pwa_webpush