decorators.py
See original GitHub issueI’m under the impression that I must be missing something important here, because I can’t seem to find this issue elsewhere on the web. However, my pip-installed version of django_twilio has a decorators.py file which is inconsistent with the one here on GitHub. The main problem seems to arise from these two import statements:
from twilio.twiml import Verb
from twilio.util import RequestValidator
The above statements should be:
from twilio.twiml import TwiML as Verb
from twilio.request_validator import RequestValidator
The current GitHub version has this correction, but the pip-installed version does not.
Please do let me know if I am foolishly missing something, or if this is a known problem.
Best, potc
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:12 (2 by maintainers)
Top Results From Across the Web
Primer on Python Decorators
In this introductory tutorial, we'll look at what Python decorators are and how to create and use them.
Read more >Decorators in Python - GeeksforGeeks
Decorators are a very powerful and useful tool in Python since it allows programmers to modify the behaviour of a function or class....
Read more >Python Decorators (With Examples) - Programiz
In Python, a decorator is a design pattern that allows you to modify the functionality of a function by wrapping it in another...
Read more >Python Decorators Tutorial: What is a Decorator? - DataCamp
A decorator is a design pattern in Python that allows a user to add new functionality to an existing object without modifying its...
Read more >How to Create and Use Decorators in Python With Examples
Python decorators allow you to change the behavior of a function without modifying the function itself. In this article I will show you...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ve pushed a forked version of django-twilio to pypi as django-twilio2 which has the fix for this
Hi all,
I’m a new contributor/maintainer of this project. Thanks @rdegges. I’ll be looking through the issues and PRs as quickly as I can. Please provide any updates (usage, issues, workarounds) that you may have, or patches, as PRs; otherwise it’s in order of importance, followed by morality.