Ejemplo n.º 1
0
    def get_context_data(self, **kwargs):
        context = super(IndexView, self).get_context_data(**kwargs)

        project = Project.objects.get(pk=settings.SUNLUMO_PROJECT_ID)

        sl_project = SunlumoProject(project.project_path)

        context['SL_Project'] = project
        context['SL_Details'] = json.dumps(sl_project.getDetails())

        return context