2020-03-24 11:59:43 +00:00
|
|
|
from django.shortcuts import render
|
2020-04-15 20:19:03 +00:00
|
|
|
from django.views.generic import TemplateView
|
2020-04-07 19:52:10 +00:00
|
|
|
from django.conf import settings
|
2020-03-24 11:59:43 +00:00
|
|
|
|
2020-04-15 20:19:03 +00:00
|
|
|
from core.views.dbsettings import *
|
|
|
|
from core.views.auth import *
|
2020-04-16 13:22:03 +00:00
|
|
|
from core.views.profiles import *
|
2020-05-21 12:54:59 +00:00
|
|
|
from core.views.generic import *
|
2020-05-31 12:08:26 +00:00
|
|
|
from core.views.brands import *
|
2020-05-21 12:54:59 +00:00
|
|
|
from core.mixins.auth import AdminMixin
|
2020-04-15 20:19:03 +00:00
|
|
|
|
2020-03-24 11:59:43 +00:00
|
|
|
# Create your views here.
|
2020-04-07 19:52:10 +00:00
|
|
|
|
|
|
|
class IndexView(TemplateView):
|
|
|
|
template_name = f"{settings.EXPEPHALON_FRONTEND}/index.html"
|
|
|
|
|
2020-04-16 09:02:22 +00:00
|
|
|
def get_context_data(self, **kwargs):
|
|
|
|
context = super().get_context_data(**kwargs)
|
|
|
|
context["title"] = "Home"
|
|
|
|
return context
|
|
|
|
|
2020-05-21 12:54:59 +00:00
|
|
|
class DashboardView(BackendTemplateView):
|
2020-04-07 19:52:10 +00:00
|
|
|
template_name = f"{settings.EXPEPHALON_BACKEND}/index.html"
|
|
|
|
|
2020-04-16 09:02:22 +00:00
|
|
|
def get_context_data(self, **kwargs):
|
|
|
|
context = super().get_context_data(**kwargs)
|
|
|
|
context["title"] = "Dashboard"
|
|
|
|
return context
|
|
|
|
|
2020-05-21 12:54:59 +00:00
|
|
|
class BackendNotImplementedView(BackendTemplateView):
|
2020-04-16 09:02:22 +00:00
|
|
|
template_name = f"{settings.EXPEPHALON_BACKEND}/notimplemented.html"
|
|
|
|
|
|
|
|
def get_context_data(self, **kwargs):
|
|
|
|
context = super().get_context_data(**kwargs)
|
|
|
|
context["title"] = "Oops!"
|
2020-05-21 12:54:59 +00:00
|
|
|
return context
|