Gabriel Hurley cb8e7c1f8f Splits OpenStack Dashboard bits from framework app code.
Moves everything OpenStack-specific (dashboards, apis, etc.)
into the openstack_dashboard project, achieving a much
cleaner separation between the project-specific code and
the generic Horizon framework code.

Change-Id: I7235b41d449b26c980668fc3eb4360b24508717b
2012-10-11 11:47:50 -07:00

11 lines
270 B
Python

from horizon import views
class IndexView(views.APIView):
# A very simple class-based view...
template_name = 'cats/tigers/index.html'
def get_data(self, request, context, *args, **kwargs):
# Add data to the context here...
return context