Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_group3
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
Jonathan Talbot
widget_group3
Commits
b2941941
Commit
b2941941
authored
Mar 09, 2022
by
iceman2434
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added forum to urls and views
parent
c183186a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
urls.py
widget_group3/widget_group3/urls.py
+2
-1
views.py
widget_group3/widget_group3/views.py
+4
-1
No files found.
widget_group3/widget_group3/urls.py
View file @
b2941941
...
@@ -15,9 +15,10 @@ Including another URLconf
...
@@ -15,9 +15,10 @@ Including another URLconf
"""
"""
from
django.contrib
import
admin
from
django.contrib
import
admin
from
django.urls
import
path
from
django.urls
import
path
from
.views
import
homepage
from
.views
import
homepage
,
forum
urlpatterns
=
[
urlpatterns
=
[
path
(
'admin/'
,
admin
.
site
.
urls
),
path
(
'admin/'
,
admin
.
site
.
urls
),
path
(
'homepage/'
,
homepage
,
name
=
'homepage'
),
path
(
'homepage/'
,
homepage
,
name
=
'homepage'
),
path
(
'forum/'
,
forum
,
name
=
'forum'
),
]
]
widget_group3/widget_group3/views.py
View file @
b2941941
...
@@ -2,3 +2,6 @@ from django.http import HttpResponse
...
@@ -2,3 +2,6 @@ from django.http import HttpResponse
def
homepage
(
request
):
def
homepage
(
request
):
return
HttpResponse
(
'Welcome to Widget!'
)
return
HttpResponse
(
'Welcome to Widget!'
)
def
forum
(
request
):
return
HttpResponse
(
'Welcome to Widget’s Forum!'
)
\ 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