Added the calendar.urls py and installed the apps in settings

parent 7af60cc8
from django.urls import path
from .views import index
urlpatterns = [
path('', index, name='index'),
]
app_name = "calendar"
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>")
......@@ -19,4 +19,5 @@ from django.urls import include, path
urlpatterns = [
path('admin/', admin.site.urls),
path('dashboard/', include('dashboard.urls', namespace="dashboard")),
path('calendar/', include('calendar.urls', namespace="calendar")),
]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment