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.2.0.tar.gz
(9.0 kB
view details)
Built Distributions
molo.pwa-6.2.0-py3-none-any.whl
(13.5 kB
view details)
molo.pwa-6.2.0-py2-none-any.whl
(13.5 kB
view details)
File details
Details for the file molo.pwa-6.2.0.tar.gz
.
File metadata
- Download URL: molo.pwa-6.2.0.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33194f5667ede997926c720a56792eef3ba7272e25eb01655c195963134490f3 |
|
MD5 | 3b0bb9c95b26ca5867510b0806bff5b3 |
|
BLAKE2b-256 | 89865852f91d5d1026c2793d6a812595ac014f56b0b2f0234641651cccd0c385 |
Provenance
File details
Details for the file molo.pwa-6.2.0-py3-none-any.whl
.
File metadata
- Download URL: molo.pwa-6.2.0-py3-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa2b9e900e0284290a641960f60b1530428b8425d17269f59dd37dafa13ba955 |
|
MD5 | 3bcf781168efdaaa73630c0346132224 |
|
BLAKE2b-256 | 3b921d1ea57f30b63f1c7248af2800ca0f87346eb54944359052dc0f6aa96bb8 |
Provenance
File details
Details for the file molo.pwa-6.2.0-py2-none-any.whl
.
File metadata
- Download URL: molo.pwa-6.2.0-py2-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f0a17b6a8771608be502e25c95ce962548c0c55507bf15c8edb45e7b81e3e2c |
|
MD5 | aa3432585ce4a94b224893ec140dfe67 |
|
BLAKE2b-256 | caa13a604e817631e5ecba58ba6f868a5d0886a693416c967d5473c22cff22d8 |