Commit 79ce79c4 authored by David Haynes's avatar David Haynes 🙆
Browse files

Index page is live, views is no longer empty

- bam, we're done here time to move one
- /project
parent 8ce469bd
"""uta_apps URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based views
1. Add an import: from other_app.views import Home
2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home')
Including another URLconf
1. Import the include() function: from django.conf.urls import url, include
2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url
from django.contrib import admin
import uta_apps.views
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^', uta_apps.views.HomePageView.as_view(), name="index"),
]
# standard library imports
from __future__ import absolute_import, print_function
# core django imports
from django.shortcuts import render
from django.views.generic import DetailView
# 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