¡@

Home 

OpenStack Study: views.py

OpenStack Index

**** CubicPower OpenStack Study ****

class IndexView(views.APIView):

# A very simple class-based view...

template_name = 'cats/kittens/index.html'

**** CubicPower OpenStack Study ****

    def get_data(self, request, context, *args, **kwargs):

        # Add data to the context here...

        return context