
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
11 lines
270 B
Python
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
|