I know this is a broad question. But imagine that you have a Django project with an API used by mobile application clients.
There are many places where you can add validation logic:
save()
When designing your project, what rules / elements will help you choose whether to indicate validation here or there?
. , , . , , , API.
, ( ..) - , , . , . , API, , .
django , , . ModelForms. , : - , , , .
: "" " " " django".
DRY:
django . , , . , , . https://docs.djangoproject.com/en/1.9/ref/validators/
, , , , ModelForms.
, .
, , ( ) : . - . , , . , API, , - .
Source: https://habr.com/ru/post/1628292/More articles:Can't read the 'null property filter in angular 2? - angularHow to define a specific resource group in a nested Azure Resource Manager template - azureLeaflet + EPSG: 31466 WMS Level - javascriptRemove the delay after the first character while holding down the key - inputHow to apply a function to each data.frame element? - rΠΡΠΎΠΊΡΡΡΠΊΠ° Π°Π½ΠΈΠΌΠ°ΡΠΈΠΈ Π² NavigationView - androidWhat design to choose to initialize complex objects? - c ++I can not get the real way to a removable SD card. Is there any way to get? - androidbootstrap 3 - ΡΡΡΠ΅ΠΊΡ Π·Π°Π²ΠΈΡΠ°Π½ΠΈΡ Π½Π° Π²ΠΈΠ΄Π΅ΠΎΠΈΠ·ΠΎΠ±ΡΠ°ΠΆΠ΅Π½ΠΈΠΈ - htmlnested dictionary size and list - pythonAll Articles