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.0.tar.gz
(8.7 kB
view details)
Built Distribution
molo.pwa-6.1.0-py2-none-any.whl
(12.8 kB
view details)
File details
Details for the file molo.pwa-6.1.0.tar.gz
.
File metadata
- Download URL: molo.pwa-6.1.0.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25d3819cf157decb5f57dc21d427631933388fab87c33c0204c21ef915f0a74f |
|
MD5 | 8cd263edf3c2d1bffd47de9dcb7763bc |
|
BLAKE2b-256 | aeb67e3c5b089e817aa82b0fa4fecb72e71c8227a591428e7a639ddac9068b6f |
Provenance
File details
Details for the file molo.pwa-6.1.0-py2-none-any.whl
.
File metadata
- Download URL: molo.pwa-6.1.0-py2-none-any.whl
- Upload date:
- Size: 12.8 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bae6f7fe4ca7f2b1d8043912382c80ecb8c57d181f3ff1d72ccdeec053011fd5 |
|
MD5 | e01b8efc8ec59df2e26fad57193613ed |
|
BLAKE2b-256 | 1da29bd69969492b39bee1065be5a484dceffd084efb016cd9aeb2464a00d800 |