#πŸ”’ Django and FASTApi Help

36 messages Β· Page 1 of 1 (latest)

sage blade
#

Hello, i am learning Django and trying to implement FastAPI to POST/GET data from server database. I just don't have any idea about How APIs work in Django. And learning resources where i can learn about API s. I don't want to use AI.
Can please someone help me ?
Thanks. πŸ‘‹

loud mossBOT
#

@sage blade

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

magic fractal
plucky jackal
#

for making resful apis

#

or you could just return a JSON response in django

#

look at django docs

#

its great

sage blade
#

Yeah. But i am an intern and the person wants me to mount the Django's WSGI appplication inside the FastAPI's ASGI Application. Which creates a single entry point.

plucky jackal
magic fractal
#

also, a lot of Django tutorials are for 3.x and 4.x, not even 5.x and 6.x was released just before the end of 2025

#

the official docs on the other hand is always up to date

sage blade
#

The end project has must have a streaming capability and i have to design an api. Which toggles the camera or a .py file.

sage blade
sage blade
plucky jackal
#

ah idk really i never tried it.

ashen bolt
sage blade
#

Django REST Framework. i think Django Ninja already has features which FastAPI has.

ashen bolt
#

Both DRF and Django Ninja has similar features to FastAPI. Not sure why you would need 2 different API backends

ashen bolt
sage blade
#

Okay. Here's the thing . There's a .py file which initiates camera and saves some data and picture into database. I want to make backend api to toggle it all in one click. Let's say a start button (UI) which runs .py file(the .py file saves data, this can be modified). And starts sending data from server to UI.

magic fractal
ashen bolt
ashen bolt
sage blade
#

There is no EXISTING API i have to design it. I just made Models and Views. for the Database and routing.

sage blade
#

Okay. So i will do it in just Django DRF

#

Or should i use Django Ninja ?

ashen bolt
#

Personally, I prefer Django Ninja. Its simpler than DRF

sage blade
#

Alright. Is there a documentation for DJango NInja where i can see the tutorial. ?

ashen bolt
sage blade
sage blade
loud mossBOT
#
Python help channel closed for inactivity

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.