Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CSCI40 Lab Activity 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
Kevin Daniel Sibug
CSCI40 Lab Activity 1
Commits
ae3e85cc
Commit
ae3e85cc
authored
Mar 07, 2020
by
Kevin Sibug
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Edited the urls to include the views and additional paths
parent
de41f439
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
1 deletion
+23
-1
urls.py
willowisp/heroes/urls.py
+17
-0
urls.py
willowisp/willowisp/urls.py
+6
-1
No files found.
willowisp/heroes/urls.py
0 → 100644
View file @
ae3e85cc
from
django.contrib
import
admin
from
django.urls
import
path
# from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from
.
import
views
urlpatterns
=
[
path
(
''
,
views
.
HeroesView
.
as_view
(),
name
=
'heroes_view'
),
path
(
'heroes/'
,
views
.
HeroesView
.
as_view
(),
name
=
'heroes_view'
),
path
(
'hero/cloud/'
,
views
.
CloudView
.
as_view
(),
name
=
'cloud_view'
),
path
(
'hero/sunflowey/'
,
views
.
SunfloweyView
.
as_view
(),
name
=
'sunflowey_view'
),
path
(
'hero/jester/'
,
views
.
JesterView
.
as_view
(),
name
=
'jester_view'
),
]
# urlpatterns += staticfiles_urlpatterns()
\ No newline at end of file
willowisp/willowisp/urls.py
View file @
ae3e85cc
...
@@ -14,8 +14,13 @@ Including another URLconf
...
@@ -14,8 +14,13 @@ Including another URLconf
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
"""
from
django.contrib
import
admin
from
django.contrib
import
admin
from
django.urls
import
path
from
django.urls
import
path
,
include
urlpatterns
=
[
urlpatterns
=
[
path
(
'admin/'
,
admin
.
site
.
urls
),
path
(
'admin/'
,
admin
.
site
.
urls
),
path
(
''
,
include
(
'heroes.urls'
)),
]
]
\ No newline at end of file
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