GithubHelp home page GithubHelp logo

Exception Value: Invalid block tag on line 17: 'webush_button'. Did you forget to register or load this tag? about django-webpush HOT 7 CLOSED

safwanrahman avatar safwanrahman commented on May 23, 2024
Exception Value: Invalid block tag on line 17: 'webush_button'. Did you forget to register or load this tag?

from django-webpush.

Comments (7)

safwanrahman avatar safwanrahman commented on May 23, 2024 1

@makelove could you solve it?

from django-webpush.

safwanrahman avatar safwanrahman commented on May 23, 2024

Hi @makelove Can you remove completely the jinja tag and try? Its registered

from django-webpush.

makelove avatar makelove commented on May 23, 2024

{% load webpush_notifications %}
{% webpush_header %}
is working
but
{% webush_button %}
will raise that error

from django-webpush.

safwanrahman avatar safwanrahman commented on May 23, 2024

Can you please post the full error log?

from django-webpush.

makelove avatar makelove commented on May 23, 2024

TemplateSyntaxError at /chat/
Invalid block tag on line 17: 'webush_button'. Did you forget to register or load this tag?
Request Method: GET
Request URL: http://127.0.0.1:8000/chat/
Django Version: 2.0.6
Exception Type: TemplateSyntaxError
Exception Value:
Invalid block tag on line 17: 'webush_button'. Did you forget to register or load this tag?
Exception Location: /Users/play/Test测试/django-example-channels/env/lib/python3.6/site-packages/django/template/base.py in invalid_block_tag, line 539
Python Executable: /Users/play/Test测试/django-example-channels/env/bin/python3.6
Python Version: 3.6.4
Python Path:
['/Users/play/Test测试/channels/mysite',
'/Users/play/Test测试/channels/mysite',
'/Users/play/Test测试/django-example-channels/env/lib/python36.zip',
'/Users/play/Test测试/django-example-channels/env/lib/python3.6',
'/Users/play/Test测试/django-example-channels/env/lib/python3.6/lib-dynload',
'/usr/local/Cellar/python/3.6.4_4/Frameworks/Python.framework/Versions/3.6/lib/python3.6',
'/Users/play/Test测试/django-example-channels/env/lib/python3.6/site-packages']
Server time: Wed, 20 Jun 2018 12:48:12 +0000

from django-webpush.

safwanrahman avatar safwanrahman commented on May 23, 2024

Oh! It was a typo!
it should be {% webpush_button %} not {% webush_button %}

from django-webpush.

makelove avatar makelove commented on May 23, 2024

yes,Thank you

But still have problems on sending message to browser,because I am at China
you use Google service, So it's a problem to connect to Google service

from django-webpush.

Related Issues (20)

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.