Skip to content

Tom-K64/Django-Tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Django-Tutorial

->Django Set up ->File structure ->Creation of app ->Basic API (first api) ->Models and fields ->ORMs -> all(),get(),create(),save(),filter(),delete(),count(),first(),last() ->Relations in model ->One to One
->One to Many ->Many to Many ->Views, APIViews REST FRAMEWORK: (CRUD) ->POST (c) ->GET (r) ->PUT (u) ->DELETE (d)

->Serializers ->Basic Serializers ->SerializerMethodField ->get_attribute

->GenericAPIVIews : ->ListAPIView ->CreateAPIView ->UpdateAPIView ->DestroyAPIView

    ->ListCreateAPIView
    ->RetrieveUpdateDestroyAPIView       

Naming conventions: Model -> name,Model ex:StudentModel

Serializer -> modelname,type,serializer ->List ->Create ->Update ex:StudentModelListSerializer ex:StudentModelCreateSerializer

Views -> modelname,type,APIView ex:StudentModelListAPIView

routes -> modelname,type,api-view ex:student-details-list-api-view/ ex:student-details-create-api-view/

Generic Views

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages