This is the molo.pwa project.
Project description
An implementation of pwa as a Molo plugin
Installation:
pip install molo.pwa
Django setup:
INSTALLED_APPS = [ ... 'molo.pwa', 'fcm_django', ... ]
Configure serviceworker path, app name, description, icons, and FCM:
PWA_SERVICE_WORKER_PATH = join( PROJECT_ROOT, 'your_app', 'templates', SITE_LAYOUT_BASE, 'serviceworker.js') PWA_NAME = 'App Name' PWA_DESCRIPTION = 'App Description' PWA_THEME_COLOR = '#fff' PWA_DISPLAY = 'standalone' PWA_START_URL = '/' PWA_ICONS = [ { 'src': '/static/img/appicons/app_icon.png', 'sizes': '160x160', "type": "image/png" } ] PWA_FCM_API_KEY = 'FCM API KEY' PWA_FCM_MSGSENDER_ID = 'FCM MESSAGE SENDER ID' FCM_DJANGO_SETTINGS = { "FCM_SERVER_KEY": 'FCM SERVER KEY', "ONE_DEVICE_PER_USER": True, "DELETE_INACTIVE_DEVICES": False, }
In your urls.py:
urlpatterns = [ url(r'', include('molo.pwa.urls')), ... ... ]
In your base.html:
{% load molo_pwa %} <head> ... {% molo_pwa_meta %} ... </head>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
molo.pwa-6.1.1.tar.gz
(8.7 kB
view details)
Built Distributions
molo.pwa-6.1.1-py3-none-any.whl
(12.8 kB
view details)
molo.pwa-6.1.1-py2-none-any.whl
(12.8 kB
view details)
File details
Details for the file molo.pwa-6.1.1.tar.gz
.
File metadata
- Download URL: molo.pwa-6.1.1.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 290ee670191f6056eedbd430f18f0d920ae56afee3d74a3f2890618723aacade |
|
MD5 | af75ffe31ad8cbf629932272375aa294 |
|
BLAKE2b-256 | fbd23264be47ebaaed938b59531df870d2b29f01d57418eaf774304ecc5f8245 |
Provenance
File details
Details for the file molo.pwa-6.1.1-py3-none-any.whl
.
File metadata
- Download URL: molo.pwa-6.1.1-py3-none-any.whl
- Upload date:
- Size: 12.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf70d24df6134ba463aaaf8a76cd0181f5a1e0475b8225f7f209979e40b5e03e |
|
MD5 | 89c753cebf797e09c83c9e9992cd322f |
|
BLAKE2b-256 | 1b975ee9cf8760231baedb51a400c2479f3b860db40f782285ce970df35a801d |
Provenance
File details
Details for the file molo.pwa-6.1.1-py2-none-any.whl
.
File metadata
- Download URL: molo.pwa-6.1.1-py2-none-any.whl
- Upload date:
- Size: 12.8 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 188cd709cfaeb070d3af8891665ce59c58cff2ff9149dcd0926a81492d51880d |
|
MD5 | e5c2de06af0e89ffbd3d3197e6735833 |
|
BLAKE2b-256 | e502ce7b1f8e35dd94c0da6600f68885dab8a85b9079182ec48d26e10cf40641 |