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.2.tar.gz
(8.9 kB
view details)
Built Distributions
molo.pwa-6.1.2-py3-none-any.whl
(13.5 kB
view details)
molo.pwa-6.1.2-py2-none-any.whl
(13.5 kB
view details)
File details
Details for the file molo.pwa-6.1.2.tar.gz
.
File metadata
- Download URL: molo.pwa-6.1.2.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3baae35d38f416684edb2aea125cd57215263f7a94f4d3f3ce2c60ab36500211 |
|
MD5 | de340174097781beb1ac747d78ba5672 |
|
BLAKE2b-256 | 8c9a936e9fb7764708ed859b7c83b121d68d904319cd8d33b6feb1cdcc489843 |
Provenance
File details
Details for the file molo.pwa-6.1.2-py3-none-any.whl
.
File metadata
- Download URL: molo.pwa-6.1.2-py3-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ded1bbdcea1d1cc93bfb941832f39c5395b0fb90664377c60ca441bb9733b0e2 |
|
MD5 | fb988b79bbea480f5328740ede4bcfce |
|
BLAKE2b-256 | ba4cf836e2e56a9cc6d83a2276359fdf1a02651fdeeb4a8cea6148dc442697da |
Provenance
File details
Details for the file molo.pwa-6.1.2-py2-none-any.whl
.
File metadata
- Download URL: molo.pwa-6.1.2-py2-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ef40cf585b7fd50dac25ececf42d1f46f579a2d9774f74c95d9c09adb1069c4 |
|
MD5 | 1ad6d1f522fa303f0e1efd03f389214d |
|
BLAKE2b-256 | 411aa98b851b8393aaee3bec7917fc6c063176bb2c6aa4af0ff55e25e919ff3b |