Questions tagged [django-ninja]
21 questions
0
votes
1 answer
How to customize the validation error using django Ninja?
```
@router.post("/addUser", response={200: responseStdr, 404: responseStdr,422: responseStdr})
def addUser(request, user: userRegister):
try:
return 200, {"status": 200,
"isError": "True",
…

Gilles GNANAGBE
- 41
- 5
0
votes
1 answer
Django Ninja - Storing total API request from user, Limit and Filter it
I'm new to django, i'm currently working with API using Django Ninja Rest Framework.
in this example, users will have a unique APIKey each time i create new APIKey from this model and attach it to selected user.
this is my APIKey model :
### NOTE…

fhmisml
- 71
- 2
- 3
0
votes
1 answer
django-ninja endpoint for post
I am a beginner in programming, I use Django + Django ninja in my project.
Now stuck on the moment of creating endpoints
I'm trying to make a filter to add tags to an article and check if the tag exists. Here is the piece of code I'm currently…

meha
- 13
- 3
0
votes
2 answers
ImportError: cannot import name 'NinjaAPI' from 'ninja'
I am working on the Django ninja rest framework. the project is working fine on my machine, but when I try to run it in a virtual environment (venv) and install all requirements.txt including django-ninja it raise an error (ImportError: cannot…

Hussein Saad
- 151
- 2
- 15
0
votes
1 answer
Multiple QuerySet to another Model
I'm writing the following code to search about category in profile model using Django ninja framework, if i retrieve only the fields in profile all query return, but when i need to get the username from the user model only one record return from the…
-1
votes
2 answers
What should i do to learn django-ninja
I am a beginner in programming, I'm trying to learn Django-ninja but I'm confused, what should I learn first, I know some basics of python. Will I need to learn Django first? I will be thankful if anyone have a map learn that leads to Django-ninja

mortada amer
- 11
- 1