This commit is contained in:
Silvio Leite
2018-11-16 13:42:40 -02:00
parent d0e1efd41f
commit 92c9df6204
7 changed files with 24 additions and 15 deletions

View File

@@ -1,10 +1,10 @@
django-progressive-web-app
django-pwa
=====
This Django app turns your project into a [progressive web app](https://developers.google.com/web/progressive-web-apps/). Navigating to your site on an Android phone will prompt you to add the app to your home screen.
![Prompt for install](https://github.com/svvitale/django-progressive-web-app/raw/master/images/screenshot1.png)
![Prompt for install](https://github.com/silviolleite/django-pwa/raw/master/images/screenshot1.png)
Launching the app from your home screen will display your app [without browser chrome](https://github.com/svvitale/django-progressive-web-app/raw/master/images/screenshot2.png). As such, it's critical that your application provides all navigation within the HTML (no reliance on the browser back or forward button).
Launching the app from your home screen will display your app [without browser chrome](https://github.com/silviolleite/django-pwa/raw/master/images/screenshot2.png). As such, it's critical that your application provides all navigation within the HTML (no reliance on the browser back or forward button).
Requirements
=====
@@ -15,7 +15,7 @@ Installation
Install from PyPI:
```
pip install django-progressive-web-app
pip install django-pwa
```
Configuration
@@ -32,12 +32,12 @@ INSTALLED_APPS = [
Configure your app name, description, and icons in settings.py:
```python
PWA_APP_NAME = 'My Kickass App'
PWA_APP_DESCRIPTION = "Do kickass things all day long without that pesky browser chrome"
PWA_APP_NAME = 'My App'
PWA_APP_DESCRIPTION = "My app description"
PWA_APP_THEME_COLOR = '#0A0302'
PWA_APP_BACKGROUND_COLOR = '#ffffff'
PWA_APP_DISPLAY = 'standalone'
PWA_APP_ORIENTATION = 'portrait-primary'
PWA_APP_ORIENTATION = 'any'
PWA_APP_START_URL = '/'
PWA_APP_ICONS = [
{