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
973a354c
Commit
973a354c
authored
Mar 09, 2022
by
Jonathan Talbot
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'forum' into 'main'
added forum to urls and views See merge request
!1
parents
c183186a
b2941941
Changes
2
Hide 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 @
973a354c
...
@@ -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 @
973a354c
from
django.http
import
HttpResponse
from
django.http
import
HttpResponse
def
homepage
(
request
):
def
homepage
(
request
):
return
HttpResponse
(
'Welcome to Widget!'
)
return
HttpResponse
(
'Welcome to Widget!'
)
\ No newline at end of file
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