Coder Social home page Coder Social logo

bambier / django-simple-pwa Goto Github PK

View Code? Open in Web Editor NEW
12.0 2.0 5.0 1.23 MB

PWA is a simple Django app to develope and deploy a Progressive Web Application.

Home Page: https://django-simple-pwa.readthedocs.io/fa/latest/

License: MIT License

Python 85.10% HTML 14.90%
djnago pwa progressive-web-application

django-simple-pwa's Introduction

PWA

![PyPI - Versions from Framework Classifiers](https://img.shields.io/pypi/frameworkversions/django/django-simple-pwa) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/django-simple-pwa) ![PyPI - Implementation](https://img.shields.io/pypi/implementation/django-simple-pwa) ![PyPI - Wheel](https://img.shields.io/pypi/wheel/django-simple-pwa)

PWA

PWA is a simple Django app to develop and deploy a Progressive Web Application.

Detailed documentation is in the "docs" directory.

Quick start

  1. Add "pwa" to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...,
        'pwa',
    ]
    
  2. Include the pwa URLconf in your project urls.py like this:

    path('', include('pwa.urls')),
    
  3. Run python manage.py collectstatic to get the PWA static files.

  4. Load pwa & its meta files in index HTML file like as:

    {% load pwa %}
    {% pwa_meta_data %}
    {% pwa_meta_script %}
    
  5. Start the development server on HTTPS or localhost to see installable app.

github: https://github.com/bambier/django-simple-pwa

documents: https://django-simple-pwa.readthedocs.io/fa/latest/

pypi: https://pypi.org/project/django-simple-pwa/

django-simple-pwa's People

Contributors

bambier avatar codigovision avatar gray-adeyi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

django-simple-pwa's Issues

PWA and WEB Pushnotifactions

@nimaes80 hi, how can we send push notifications using this library? or we can use any other library for Push Notifications for the web and PWA

Add notes on how to change icon

Hi there,

I forked this repo (thank you btw for making it) and am currently unable to change the icon from the default one. Would you be able to add information to the Readme?

Thanks!

Use pwa.defaults

fromdjango.http.response import HttpResponse, JsonResponse
from django.shortcuts import render

from pwa.defaults import get_app, get_pwa_config, get_service_worker

def offline(request):
    try:
        return render(request, 'pwa/offline.html')
    except:
        return render(request, 'pwa/pwa_offline

Could we Change the PWA_CONFIG from the database

Hi...
Thanks you for your efforts, you did a nice work.
I have a question,
can we provide a way to change the PWA_CONFIG from the database to be dynamic config ?
I have dynamic sites in my project, and wanted to change the name and the icon of the pwa dynamically

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.