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
Foreign Key field cant not be save in Django
I have this two model that is related by a foreign key. I take response from a webhook regarding a transaction and save into the model. What i am trying to do is save the the foreign key element into ...
spiritman
Votes: 0
Answers: 1
Django - List Filtering using a ForeignKey within a ForeignKey
I can filter the list of Bookings from "housing" using the "Housing" ForeignKey
But I need to do it based on the h_type which uses the "HousingType" ForeignKey
I am not s...
Aramantos
Votes: 0
Answers: 1
How I validate if user belongs and if not he is not allowed in Django
I have a view that I want to pass all the requests that belongs to a hospital. And, the user which belongs to a hospital, can't see others hospital requests.
How can I return a HttpResponseNotAllowed ...
Max
Votes: 0
Answers: 1