Commit d562ab60 authored by David Haynes's avatar David Haynes 🙆
Browse files

Index is actually static, no reason for logic

- views is back to being empty
parent b26a6905
# django imports
from django.conf.urls import url
from django.contrib.auth.decorators import login_required
from django.contrib import admin
from django.views.generic import TemplateView
# app imports
import uta_apps.views
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^', uta_apps.views.HomePageView.as_view(), name="index"),
url(r'^', TemplateView.as_view(template_name='index.html'), name="index"),
]
......@@ -2,14 +2,9 @@
from __future__ import absolute_import, print_function
# core django imports
from django.shortcuts import render
from django.views.generic import DetailView
from django.views.generic import DetailView, TemplateView, View
# third party imports
from braces.views import LoginRequiredMixin
from cas.views import login as cas_login
# app imports
# from .models import TODO
class HomePageView(DetailView):
template_name = 'index.html'
def get(self, request, *args, **kwargs):
return render(request, self.template_name)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment