Commit 598967ea authored by Gabriel Geraldo's avatar Gabriel Geraldo

created app widget_calendar

parent 7957ee9d
from django.contrib import admin
# Register your models here.
from django.apps import AppConfig
class WidgetCalendarConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'widget_calendar'
from django.db import models
# Create your models here.
from django.test import TestCase
# Create your tests here.
from django.urls import path
from .views import index
urlpatterns = [
path('', index, name='index')
]
app_name = "widget_calendar"
\ No newline at end of file
from django.shortcuts import render
from django.http import HttpResponse
def index(HttpRequest):
return HttpResponse('''
<html>
<head>
<title>Calendar</title>
</head>
<body>
<h1>Widget's Calendar of Activities</h1>
<p>to be created</p>
</body>
</html>
''')
\ No newline at end of file
...@@ -44,7 +44,8 @@ INSTALLED_APPS = [ ...@@ -44,7 +44,8 @@ INSTALLED_APPS = [
'announcement_board', 'announcement_board',
'dashboard', 'dashboard',
'forum', 'forum',
'assignments' 'assignments',
'widget_calendar',
] ]
MIDDLEWARE = [ MIDDLEWARE = [
......
...@@ -22,4 +22,5 @@ urlpatterns = [ ...@@ -22,4 +22,5 @@ urlpatterns = [
path('forum/', include('forum.urls', namespace="forum")), path('forum/', include('forum.urls', namespace="forum")),
path('announcements/', include('announcement_board.urls', namespace="announcement_board")), path('announcements/', include('announcement_board.urls', namespace="announcement_board")),
path('assignments/', include('assignments.urls', namespace="assignments")), path('assignments/', include('assignments.urls', namespace="assignments")),
path('calendar/', include('widget_calendar.urls', namespace="widget_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