Skip to main content
=============================
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)

Source distribution for django-webapp-install-banner 0.1.0
File Size Uploaded
django-webapp-install-banner-0.1.0.tar.gz 6.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-webapp-install-banner 0.1.0
File Interpreter ABI Platform
django_webapp_install_banner-0.1.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 14.3 kB

Release files / django-webapp-install-banner-0.1.0.tar.gz

Download URL django-webapp-install-banner-0.1.0.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
571b0cec0ad92eb8c82ea2ed922399e76e371a7425a168c3fad9c12d522bd3f1
BLAKE2b-256 checksum
How to use checksums
b429142bb07c0ae9312d6c6f3fea80f9800f5e2be53923272093fb9e8673731b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / django_webapp_install_banner-0.1.0-py2.py3-none-any.whl

Download URL django_webapp_install_banner-0.1.0-py2.py3-none-any.whl
Size 7.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
2d6c802a7ecd35c31c7a950164b2e64f786ee62c7e557921c1f212b073018193
BLAKE2b-256 checksum
How to use checksums
1d8c2db9344294d5fee9188a52b12a5b41d55b0554f39b0bafc325e98c5363dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page