Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CSCI 40 Lab 1
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Lance Michael O. Co
CSCI 40 Lab 1
Commits
2039c510
Commit
2039c510
authored
Mar 07, 2020
by
Lance Michael O. Co
😢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
second test urls
parent
2638ba33
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
27 additions
and
13 deletions
+27
-13
tests.cpython-38.pyc
heroes/__pycache__/tests.cpython-38.pyc
+0
-0
views.cpython-38.pyc
heroes/__pycache__/views.cpython-38.pyc
+0
-0
home.html
heroes/templates/home.html
+4
-0
urls.py
heroes/urls.py
+7
-4
views.py
heroes/views.py
+16
-9
__init__.cpython-38.pyc
superlists/__pycache__/__init__.cpython-38.pyc
+0
-0
__init__.cpython-38.pyc
...b/site-packages/wheel/__pycache__/__init__.cpython-38.pyc
+0
-0
No files found.
heroes/__pycache__/tests.cpython-38.pyc
0 → 100644
View file @
2039c510
File added
heroes/__pycache__/views.cpython-38.pyc
0 → 100644
View file @
2039c510
File added
heroes/templates/home.html
0 → 100644
View file @
2039c510
<!-- heroes/templates/home.html -->
<html>
<title>
To-Do heroes
</title>
</html>
\ No newline at end of file
heroes/urls.py
View file @
2039c510
# This file is to be created inside the lists app folder
# lists/urls.py
# heroes/urls.py
from
django.conf.urls
import
url
from
.views
import
home_page
from
.views
import
HomeView
,
HeroesView
,
CloudView
,
SunfloweyView
,
JesterView
urlpatterns
=
[
url
(
r'^$'
,
home_page
,
name
=
'home_page'
),
url
(
r'^/$'
,
HomeView
,
name
=
'home'
),
url
(
r'^/heroes/$'
,
HeroesView
,
name
=
'heroes'
),
url
(
r'/hero/cloud/^$'
,
CloudView
,
name
=
'cloud'
),
url
(
r'/hero/sunflowey/^$'
,
SunfloweyView
,
name
=
'sunflowey'
),
url
(
r'/hero/jester/^$'
,
JesterView
,
name
=
'jester'
),
]
\ No newline at end of file
heroes/views.py
View file @
2039c510
# heroes/views.py
from
django.views.generic.base
import
TemplateView
from
django.views.generic.edit
import
CreateView
from
django.shortcuts
import
render
class
HomeView
(
TemplateView
):
template_name
=
"home.html"
def
home_page
(
request
):
return
render
(
request
,
'home.html'
)
def
detail_cloud
(
request
):
return
render
(
request
,
'cloud.html'
)
class
HeroesView
(
TemplateView
):
template_name
=
"heroes.html"
def
detail_sunflowey
(
request
):
return
render
(
request
,
'sunflowey.html'
)
def
detail_jester
(
request
):
return
render
(
request
,
'jester.html'
)
class
CloudView
(
TemplateView
):
template_name
=
"cloud.html"
class
SunfloweyView
(
TemplateView
):
template_name
=
"sunflowey.html"
class
JesterView
(
TemplateView
):
template_name
=
"jester.html"
superlists/__pycache__/__init__.cpython-38.pyc
0 → 100644
View file @
2039c510
File added
venv/Lib/site-packages/wheel/__pycache__/__init__.cpython-38.pyc
0 → 100644
View file @
2039c510
File added
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