settings
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -4,5 +4,5 @@
|
||||
.venv/
|
||||
build/
|
||||
dist/
|
||||
django_progressive_web_app.egg-info/
|
||||
*.egg-info/
|
||||
.tox/
|
||||
|
||||
@@ -3,3 +3,10 @@
|
||||
## 0.1.0
|
||||
|
||||
- Initial release
|
||||
|
||||
## 1.0.0
|
||||
|
||||
- Unit tests
|
||||
- Add Oritentation on manifest.json
|
||||
- Add tox
|
||||
|
||||
@@ -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
|
||||
|
||||
14
README.md
14
README.md
@@ -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.
|
||||
|
||||

|
||||

|
||||
|
||||
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 = [
|
||||
{
|
||||
|
||||
@@ -13,7 +13,7 @@ PWA_APP_ROOT_URL = getattr(settings, 'PWA_APP_ROOT_URL', '/')
|
||||
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', [
|
||||
{
|
||||
|
||||
11
setup.py
11
setup.py
@@ -17,16 +17,16 @@ except:
|
||||
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',
|
||||
@@ -39,6 +39,7 @@ setup(
|
||||
'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',
|
||||
],
|
||||
|
||||
@@ -33,6 +33,7 @@ class ManifestTest(TestCase):
|
||||
'"display":',
|
||||
'"background_color":',
|
||||
'"theme_color":',
|
||||
'"orientation":',
|
||||
'"icons":',
|
||||
'"dir":',
|
||||
'"lang":'
|
||||
|
||||
Reference in New Issue
Block a user