1. Serializers.py for each model.
2. Maybe create separate DRF views that parse and render JSON, and avoid cluttering pure Django views.
3. Keep the website UI as is.
On Tuesday, July 19, 2022 at 5:52:19 AM UTC+5:30 ram.mu...@gmail.com wrote:
Hi,We completed coding all the features without DRF for our web site and now we are planning to develop a mobile app for the same website by keeping the web site as it is and develop a mobile app using Flutter.Based on our understanding, we have do the following in the current code for adding REST APIs
- We have to create serializers.py for each model in each App that we have
- We need to add a few lines of code in views.py
- We think we don't have to modify the UI template by using json response from DRF ( Is this really necessary because we are not changing anything in the website UI)
Please correct me if I'm wrong about the above 3 points or do we need to do any additional things?Best regards,
~Ram
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e6c7f5dd-bb17-423a-a04f-533b31d3a787n%40googlegroups.com.
No comments:
Post a Comment