python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
How to resolve Positional Arguments error in Python
Am getting an error with below code.
How can i get this error resolved
def verify_payment (request: HttpRequest, ref: str, amount )-> HttpResponse:
payment = get_object_or_404(Payment, ref=ref)...
Echiye Forcde
Votes: 0
Answers: 1
Displaying messages through django signals
I'm looking to make a django app that uses signals. (using django signals) There I would like to run some functions, and based on which output they give, send a message within the webpage. so for exam...
gmv
Votes: 0
Answers: 0
Django How to check a request is Ajax
The HttpRequest.is_ajax() method is deprecated as it relied on a jQuery-specific way of signifying AJAX calls, while current usage tends to use the JavaScript Fetch API. Depending on your use case, yo...
Ayaz Ur Rashid
Votes: 0
Answers: 2
Why Is My Django Post Request Sending Incorrectly Parsed My List of Dictionaries?
Here is my Django view:
def sendMail(request):
url = 'https://example.com/example'
dictwithlist = request.FILES['dictwithlist']
parsed = json.load(dictwithlist)
// the log file sh...
Lester
Votes: 0
Answers: 1