Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_vincentdjango
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
1
Merge Requests
1
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
Almira Redoble
midterm_vincentdjango
Commits
5b273379
Commit
5b273379
authored
Mar 05, 2023
by
Andrew Justin C. Idquival
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added the calendar.urls py and installed the apps in settings
parent
7af60cc8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
1 deletion
+19
-1
urls.py
widget_vincentdjango/calendar/urls.py
+8
-0
views.py
widget_vincentdjango/calendar/views.py
+10
-1
urls.py
widget_vincentdjango/widget_vincentdjango/urls.py
+1
-0
No files found.
widget_vincentdjango/calendar/urls.py
0 → 100644
View file @
5b273379
from
django.urls
import
path
from
.views
import
index
urlpatterns
=
[
path
(
''
,
index
,
name
=
'index'
),
]
app_name
=
"calendar"
widget_vincentdjango/calendar/views.py
View file @
5b273379
from
django.shortcuts
import
render
from
django.shortcuts
import
render
from
django.http
import
HttpResponse
# Create your views here.
def
index
(
request
):
return
HttpResponse
(
"Widget’s Calendar of Activities<br>"
"Date and Time: <target date>, <target time><br>"
"Activity: <activity><br>"
"Estimated Hours: <estimated hours><br>"
"Course/Section: <course_code> <course_title>-<section><br>"
"Mode: <mode><br>"
"Venue: <venue><br>"
)
widget_vincentdjango/widget_vincentdjango/urls.py
View file @
5b273379
...
@@ -19,4 +19,5 @@ from django.urls import include, path
...
@@ -19,4 +19,5 @@ from django.urls import include, path
urlpatterns
=
[
urlpatterns
=
[
path
(
'admin/'
,
admin
.
site
.
urls
),
path
(
'admin/'
,
admin
.
site
.
urls
),
path
(
'dashboard/'
,
include
(
'dashboard.urls'
,
namespace
=
"dashboard"
)),
path
(
'dashboard/'
,
include
(
'dashboard.urls'
,
namespace
=
"dashboard"
)),
path
(
'calendar/'
,
include
(
'calendar.urls'
,
namespace
=
"calendar"
)),
]
]
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