Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_father when can i be on my own i have the hello world to see
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
father when can i be on my own i have the hello world to see
widget_father when can i be on my own i have the hello world to see
Commits
e2bd7dc7
Commit
e2bd7dc7
authored
May 17, 2022
by
Charles Lim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed urls for base project
parent
349ca2e3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
11 deletions
+11
-11
index.html
homepage/templates/homepage/index.html
+1
-1
urls.py
homepage/urls.py
+1
-1
base.html
templates/base.html
+4
-4
urls.py
..._can_i_be_on_my_own_i_have_the_hello_world_to_see/urls.py
+5
-5
No files found.
homepage/templates/homepage/index.html
View file @
e2bd7dc7
...
...
@@ -14,6 +14,6 @@ Welcome to Widget!
{% block content %}
{% for user in all_widgetusers %}
<a
class=
"details"
href=
"
homepage/
{{user.id}}/details"
>
{{forloop.counter}}. {{user.last_name}}, {{user.first_name}} {{user.middle_name}}
</a>
</br>
<a
class=
"details"
href=
"{{user.id}}/details"
>
{{forloop.counter}}. {{user.last_name}}, {{user.first_name}} {{user.middle_name}}
</a>
</br>
{% endfor %}
{% endblock %}
\ No newline at end of file
homepage/urls.py
View file @
e2bd7dc7
...
...
@@ -3,7 +3,7 @@ from .views import HomepageView, WidgetUserDetailView
urlpatterns
=
[
path
(
''
,
HomepageView
.
as_view
(),
name
=
'index'
),
path
(
'
/
<int:pk>/details'
,
WidgetUserDetailView
.
as_view
(),
path
(
'<int:pk>/details'
,
WidgetUserDetailView
.
as_view
(),
name
=
'widgetuser_detail'
),
]
app_name
=
"homepage"
templates/base.html
View file @
e2bd7dc7
...
...
@@ -10,10 +10,10 @@
<body>
<nav>
<ul>
<li><a
class=
"links"
href=
"/homepage"
>
HOMEPAGE
</a></li>
<li><a
class=
"links"
href=
"/assignments"
>
ASSIGNMENTS
</a></li>
<li><a
class=
"links"
href=
"/forum"
>
FORUM
</a></li>
<li><a
class=
"links"
href=
"/announcements"
>
ANNOUNCEMENTS
</a></li>
<li><a
class=
"links"
href=
"/homepage
/
"
>
HOMEPAGE
</a></li>
<li><a
class=
"links"
href=
"/assignments
/
"
>
ASSIGNMENTS
</a></li>
<li><a
class=
"links"
href=
"/forum
/
"
>
FORUM
</a></li>
<li><a
class=
"links"
href=
"/announcements
/
"
>
ANNOUNCEMENTS
</a></li>
</ul>
</nav>
<div
class=
"content"
>
...
...
widget_father_when_can_i_be_on_my_own_i_have_the_hello_world_to_see/urls.py
View file @
e2bd7dc7
...
...
@@ -19,12 +19,12 @@ from django.conf.urls.static import static
from
django.conf
import
settings
urlpatterns
=
[
path
(
'homepage'
,
include
(
"homepage.urls"
,
namespace
=
'homepage'
)),
path
(
'admin'
,
admin
.
site
.
urls
),
path
(
'forum'
,
include
(
"forum.urls"
,
namespace
=
'forum'
)),
path
(
'announcements'
,
include
(
"announcement_board.urls"
,
path
(
'homepage
/
'
,
include
(
"homepage.urls"
,
namespace
=
'homepage'
)),
path
(
'admin
/
'
,
admin
.
site
.
urls
),
path
(
'forum
/
'
,
include
(
"forum.urls"
,
namespace
=
'forum'
)),
path
(
'announcements
/
'
,
include
(
"announcement_board.urls"
,
namespace
=
'announcement_board'
)),
path
(
'assignments'
,
include
(
"assignments.urls"
,
namespace
=
'assignments'
)),
path
(
'assignments
/
'
,
include
(
"assignments.urls"
,
namespace
=
'assignments'
)),
]
urlpatterns
+=
static
(
settings
.
MEDIA_URL
,
document_root
=
settings
.
MEDIA_ROOT
)
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