Oct 2017
2 Mon
3 Tue
4 Wed
5 Thu
6 Fri
7 Sat 09:00 AM – 10:00 AM IST
8 Sun 09:00 AM – 10:00 AM IST
Sourav Basu
Your Django APIs start small and grow into a mess unless checked in time. This talk is how we can keep those APIs clean and small even with huge number of methods and classes using some sort of architecture. This is aimed at both the beginner and intermediate level of Django developers.
I will be covering both REST Framework Views and basic Django Views using templates.
Request Validations
We keep having existential checks for every API that requires some data. Also sometimes we have to check for data type. We can cut down on these lines of code.
Error Messaging
This is about giving proper error messaging. Its more than having a strings file where we pass the same string. How about having to write the exception handling only once and forget about it.
Code Structuring
This is more of a personal experience of structuring that helped me. This is not necesarrily the only way.
Cleaner DB operations
Db APIs should raise Errors and they should be handled in a clean way so as to maintain uniformity across APIs.
N/A
I work for an organization called Credy where we have implemented the things mentioned in this talk and I am part of a team that implemented this and part of the whole idea of implementation as well. I have been working professionally on Django/Python since 2015 and I am aware of some of the problems that this talk solves.
{{ gettext('Login to leave a comment') }}
{{ gettext('Post a comment…') }}{{ errorMsg }}
{{ gettext('No comments posted yet') }}