Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (17 sloc) 665 Bytes
# -*- encoding: utf-8 -*-
from django.views.generic import TemplateView
from base.view_utils import BaseMixin
from compose.models import CodeSnippet
class DashView(BaseMixin, TemplateView):
template_name = 'example/dash.html'
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
obj = CodeSnippet.objects.get(slug=CodeSnippet.CSS)
snippet = obj.code
except CodeSnippet.DoesNotExist:
snippet = ''
return context
class SettingsView(BaseMixin, TemplateView):
template_name = 'example/settings.html'
You can’t perform that action at this time.