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.0.0.tar.gz
(8.6 kB
view details)
Built Distribution
molo.pwa-6.0.0-py2-none-any.whl
(12.7 kB
view details)
File details
Details for the file molo.pwa-6.0.0.tar.gz
.
File metadata
- Download URL: molo.pwa-6.0.0.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04a9af85c7dd6d424629d4cff09ed27bcecd59086101ffb709538a7fb37d490a |
|
MD5 | 013b5ed8e7b139be09be987184a1fcfa |
|
BLAKE2b-256 | 801156e93ca1aee9cc0ebc76c37c57f73ddc397013af0417aa3a53f613d3645f |
File details
Details for the file molo.pwa-6.0.0-py2-none-any.whl
.
File metadata
- Download URL: molo.pwa-6.0.0-py2-none-any.whl
- Upload date:
- Size: 12.7 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f95651afcfd13d776272c8da579507151c9a1f072cd23c2e421d3557c7cd242b |
|
MD5 | ce90881ae640e2abbc9e32458fccf311 |
|
BLAKE2b-256 | 8dfbd59395a499444c0dcfe4414a00b95d0f86dba1d426cb55c235cd74b652ca |