parameters: (self, request, pk=None, format=None)
docstring: Syncing application with cms
          ---
          parameters_strategy:
              form: replace
          parameters:
              - name: ignore_setting
                description: >
                  ignore cms syncing flag in setting.py or not
                type: boolean
                paramType: form
docstring_summary: Syncing application with cms
          ---
          parameters_strategy:
              form: replace
          parameters:
              - name: ignore_setting
                description: >
                  ignore cms syncing flag in setting.py or not
                type: boolean
                paramType: form
docstring_tokens: Syncing application with cms --- parameters_strategy : form : replace parameters : - name : ignore_setting description : > ignore cms syncing flag in setting . py or not type : boolean paramType : form
function: def sync(self, request, pk=None, format=None):
          """
          Syncing application with cms
          ---
          parameters_strategy:
              form: replace
          parameters:
              - name: ignore_setting
                description: >
                  ignore cms syncing flag in setting.py or not
                type: boolean
                paramType: form
          """
          app = self.get_object()
          try:
              app.sync_cms()
          except Exception as e:
              return Response(str(e), status=HTTP_400_BAD_REQUEST)
          else:
              return self.retrieve(request, pk=pk)
function_tokens: def sync ( self , request , pk = None , format = None ) : app = self . get_object ( ) try : app . sync_cms ( ) except Exception as e : return Response ( str ( e ) , status = HTTP_400_BAD_REQUEST ) else : return self . retrieve ( request , pk = pk )