1

I have developed a Django e-commerce platform and then realized that I need to use FastAPI with it in order for my website to accept payments from the square payment system.

I have looked through their documentation about how to do it, and they use fast API. However, I have no experience using Fast API at all.

Is there a way for me to set up this fast API functionality without changing my Django project (so that it runs "together" with my Django app)? Or maybe there is another way which you would recommend me to use?

illymarev
  • 157
  • 9
  • I was thinking about starting 2 docker containers together, where one will be for my website, and another will be for the FastAPI. Is it a good idea or not? – illymarev Sep 22 '21 at 21:44
  • yes this is possible. [just visit this link](https://stackoverflow.com/questions/63726203/is-it-possible-to-use-fastapi-with-django) – azhar Sep 22 '21 at 21:49
  • @azhar, but this way means that I will need to change all my code in the Django app so that it fits fast API, doesn't it? – illymarev Sep 22 '21 at 21:58

0 Answers0