Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
uta_apps
Commits
79ce79c4
Commit
79ce79c4
authored
Mar 19, 2016
by
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
Changes
3
Hide whitespace changes
Inline
Side-by-side
uta_apps/settings/urls.py
View file @
79ce79c4
"""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"
),
]
uta_apps/uta_apps/templates/index.html
0 → 100644
View file @
79ce79c4
<p>
Oh hi there
</p>
uta_apps/uta_apps/views.py
View file @
79ce79c4
# 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
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment