Skip to main content

Easy use service workers and the app shell concept for django.

Project description

https://badge.fury.io/py/django-app-shell.svg https://travis-ci.org/DebVortex/django-app-shell.svg?branch=master https://codecov.io/gh/DebVortex/django-app-shell/branch/master/graph/badge.svg

Inspired by the Using Django with service workers talk by Adrian Holovaty from the DjangoCon Europe 2016, django-app-shell aims to provide an easy to use and configure way of utilizing the app shell architecture from google.

Documentation

The full documentation is at https://django-app-shell.readthedocs.io.

Quickstart

Install Django App Shell:

pip install django-app-shell

Add it to your INSTALLED_APPS:

INSTALLED_APPS = (
    ...
    'django_app_shell.apps.DjangoAppShellConfig',
    ...
)

Add Django App Shell’s URL patterns:

from django_app_shell import urls as django_app_shell_urls


urlpatterns = [
    ...
    url(r'^', include(django_app_shell_urls)),
    ...
]

Features

  • client side caching using service worker (TODO)
  • easy push notification API (TODO)
  • offline use of page/features using service worker (TODO)

Running Tests

Does the code actually work?

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ tox

Credits

Tools used in rendering this package:

History

0.1.0 (2017-05-28)

  • First release on PyPI.

Project details


Release history Release notifications

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page