Nextjs and Django Rest Framework
Unanswered
Carpenter wasp posted this in #help-forum
Carpenter waspOP
I’m using Django Rest Framework as the backend and Next.js as the frontend. I have a question about whether I should let them run on different servers or embed Next.js to run inside Django. If I’m only using Next.js as the frontend, should I build the HTML and embed it into Django running server (using django templates)? Or for this case should I use React instead?
1 Reply
Hunting wasp
Hi, If using Next.Js it's better have separate projects for frontend and backend, there is no reason to embedded in django templates if your using rest_franework for data pulling. Yes there are some resources you can combine your front-end and backend into a single project but resources are very limited, you get trouble when deploying if you are new to Web dev like Iam. Better to separate your projects like I did with my topbestmovie.com project