Skip to content

Commit

Permalink
settings
Browse files Browse the repository at this point in the history
  • Loading branch information
silviolleite committed Nov 16, 2018
1 parent d0e1efd commit 92c9df6
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
.venv/
build/
dist/
django_progressive_web_app.egg-info/
*.egg-info/
.tox/
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,10 @@
## 0.1.0

- Initial release

## 1.0.0

- Unit tests
- Add Oritentation on manifest.json
- Add tox

2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License (MIT)

Copyright (c) 2014 Scott Vitale
Copyright (c) 2014 Scott Vitale, Silvio Luis and Contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
=====
Expand All @@ -15,7 +15,7 @@ Installation
Install from PyPI:

```
pip install django-progressive-web-app
pip install django-pwa
```

Configuration
Expand All @@ -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 = [
{
Expand Down
2 changes: 1 addition & 1 deletion pwa/app_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
PWA_APP_THEME_COLOR = getattr(settings, 'PWA_APP_THEME_COLOR', '#000')
PWA_APP_BACKGROUND_COLOR = getattr(settings, 'PWA_APP_BACKGROUND_COLOR', '#fff')
PWA_APP_DISPLAY = getattr(settings, 'PWA_APP_DISPLAY', 'standalone')
PWA_APP_ORIENTATION = getattr(settings, 'PWA_APP_ORIENTATION', 'portrait-primary')
PWA_APP_ORIENTATION = getattr(settings, 'PWA_APP_ORIENTATION', 'any')
PWA_APP_START_URL = getattr(settings, 'PWA_APP_START_URL', '/')
PWA_APP_ICONS = getattr(settings, 'PWA_APP_ICONS', [
{
Expand Down
11 changes: 6 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))

setup(
name='django-progressive-web-app',
version='0.1.1',
name='django-pwa',
version='1.0.0',
packages=find_packages(),
include_package_data=True,
license='MIT License',
description=short_description,
long_description=long_description,
url='http://github.com/svvitale/django-progressive-web-app',
author='Scott Vitale',
author_email='svvitale@gmail.com',
url='http://github.com/silviolleite/django-pwa',
author='Silvio Luis',
author_email='silviolleite@gmail.com',
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
Expand All @@ -39,6 +39,7 @@
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
Expand Down
1 change: 1 addition & 0 deletions tests/test_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def test_manifest_contains(self):
'"display":',
'"background_color":',
'"theme_color":',
'"orientation":',
'"icons":',
'"dir":',
'"lang":'
Expand Down

0 comments on commit 92c9df6

Please sign in to comment.