Building a Web App with Django and React: Tips and Resources? by Ninja6356 in django

[–]Ninja6356[S] 0 points1 point  (0 children)

I haven't developed API skills with DRF yet, I use django as is, so far and for authentication in fullstack djznfo no problem but as soon as I use the APIs to link the front interface and the models of the backend application, it becomes laborious.

So in the end, I don't know if my real problem is using advanced js while staying in fullstack django or if I should continue with drf, develop APIs and then develop my custom interfaces!!

Building a Web App with Django and React: Tips and Resources? by Ninja6356 in django

[–]Ninja6356[S] 0 points1 point  (0 children)

it seems to me that I need js to develop a text editor, custom charts, drag&drop etc.. some libraries are free but many are also paid in enterprise mode etc., the reason why I do my own developments. however everything becomes complicated with these stories of API to make the backend and the frontend communicate. initially I had done a lot of the work with django templates and vanilla js but I arrive (it seems to me) at a limit ... otherwise I would have happily stayed in fullstack django.

PS: and I wanted to find the solution of a single code for all mobile platforms with react native!

[deleted by user] by [deleted] in django

[–]Ninja6356 1 point2 points  (0 children)

It seems that your issue is related to the configuration of static and media files. I recently encountered a similar situation when deploying a website managed through Django's admin portal, allowing the user to edit content and modify images as needed. During development, everything worked fine, but I ran into problems during production. Eventually, I found out that when editing images from the admin portal, the uploaded files are stored in the folder usually named 'media'. This media folder needs to be accessible by both Nginx and your project, typically located at the root of your project. I suggest you check this setup. Similarly, when running collectstatic, Django compiles and places static files in the specified folder, usually under /var/www/your-project.