django-webapp-install-banner
=============================
.. image:: https://badge.fury.io/py/django-webapp-install-banner.png
:target: https://badge.fury.io/py/django-webapp-install-banner
.. image:: https://travis-ci.org/ferranp/django-webapp-install-banner.png?branch=master
:target: https://travis-ci.org/ferranp/django-webapp-install-banner
Add web App install banner to django project"
Documentation
-------------
The full documentation is at https://django-webapp-install-banner.readthedocs.org.
Quickstart
----------
Install django-webapp-install-banner::
pip install django-webapp-install-banner
Add to your django settings.py file::
INSTALLED_APPS += ('webapp_install_banner',)
MIDDLEWARE_CLASSES += ('webapp_install_banner.middleware.WebAppMiddleware',)
MANIFEST = {
"short_name": _("Project name"),
"name": _("Project log name"),
"icons": [
{
"src": "img/favicon-96x96.png",
"sizes": "96x96",
"type": "image/png"
},
{
"src": "img/apple-touch-icon-144x144.png",
"sizes": "144x144",
"type": "image/png"
},
{
"src": "img/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
}
],
"start_url": reverse_lazy("index"),
"display": "standalone"
}
Add to your urls.py::
urlpatterns += (url(r'', include('webapp_install_banner.urls')),)
Add to your base template html header::
{% load webapp_tags %}
{% webapp_manifest %}
Features
--------
Adds a manifest.json file, and manages detecting if started from webapp.
TODO: Add service worker file.
Running Tests
--------------
Does the code actually work?
::
source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install -r requirements-test.txt
(myenv) $ python runtests.py
Credits
---------
Tools used in rendering this package:
* Cookiecutter_
* `cookiecutter-pypackage`_
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackage
History
-------
0.1.0 (2016-03-27)
++++++++++++++++++
* First release on PyPI.
Metadata
Release files for django-webapp-install-banner 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-webapp-install-banner-0.1.0.tar.gz | 6.5 kB | Without provenance | Details for django-webapp-install-banner-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_webapp_install_banner-0.1.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for django_webapp_install_banner-0.1.0-py2.py3-none-any.whl |
Total release size: 14.3 kB
Security for django-webapp-install-banner 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.