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
3da5dd23
Commit
3da5dd23
authored
May 22, 2022
by
Isaiah Flores
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update urls.py for forum
Added new URL path /posts/ for Forum
parent
d514fa40
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
16 deletions
+2
-16
urls.py
widget_group3/widget_group3/urls.py
+2
-16
No files found.
widget_group3/widget_group3/urls.py
View file @
3da5dd23
"""widget_group3 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/4.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based views
1. Add an import: from other_app.views import Home
2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
Including another URLconf
1. Import the include() function: from django.urls import include, path
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
,
include
from
django.urls
import
path
,
include
...
@@ -22,6 +7,7 @@ urlpatterns = [
...
@@ -22,6 +7,7 @@ urlpatterns = [
path
(
''
,
include
(
'homepage.urls'
),
name
=
'Homepage'
),
path
(
''
,
include
(
'homepage.urls'
),
name
=
'Homepage'
),
path
(
'homepage/'
,
include
(
'homepage.urls'
),
name
=
'Homepage'
),
path
(
'homepage/'
,
include
(
'homepage.urls'
),
name
=
'Homepage'
),
path
(
'forum/'
,
include
(
'forum.urls'
),
name
=
'Forum'
),
path
(
'forum/'
,
include
(
'forum.urls'
),
name
=
'Forum'
),
path
(
'posts/'
,
include
(
'forum.urls'
),
name
=
'Forum'
),
path
(
'assignments/'
,
include
(
'assignments.urls'
),
name
=
'Assignments'
),
path
(
'assignments/'
,
include
(
'assignments.urls'
),
name
=
'Assignments'
),
path
(
'announcements/'
,
include
(
'announcements.urls'
),
name
=
'Announcement Board'
),
path
(
'announcements/'
,
include
(
'announcements.urls'
),
name
=
'Announcement Board'
),
]
]
\ 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