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-1.0.0.tar.gz
(7.1 kB
view details)
Built Distribution
molo.pwa-1.0.0-py2-none-any.whl
(10.7 kB
view details)
File details
Details for the file molo.pwa-1.0.0.tar.gz
.
File metadata
- Download URL: molo.pwa-1.0.0.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02ca60e075cb6d12032be8a86fa6fe57287317da1ef2b09f030af5ec8342a8c2 |
|
MD5 | 4e0ad7bd3a9e430ff61a51d0665c32a7 |
|
BLAKE2b-256 | a52f437b07d5e05d7406228f494a710844de5b5afe74d01dd88af7c2bba6e0a1 |
Provenance
File details
Details for the file molo.pwa-1.0.0-py2-none-any.whl
.
File metadata
- Download URL: molo.pwa-1.0.0-py2-none-any.whl
- Upload date:
- Size: 10.7 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99b3831a0444c485fc5ad146225a23812e54ea930c2656231af74e2756070f85 |
|
MD5 | 85df7a058bbad0cf95e06f39348899ca |
|
BLAKE2b-256 | 62e6290f57b7f60b5af5f55b62e439bbd6aecb0d645879943b60ae3b49041954 |