Commit f976335a authored by rachbit's avatar rachbit

created app assignments

parent 2d040343
from django.contrib import admin
# Register your models here.
from django.apps import AppConfig
class AssignmentsConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'assignments'
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'),
]
# This might be needed, depending on your Django version
app_name = "assignments"
from django.shortcuts import render
from django.http import HttpResponse
def index(request):
return HttpResponse('Hello World! This is assignments')
...@@ -11,7 +11,7 @@ https://docs.djangoproject.com/en/4.1/ref/settings/ ...@@ -11,7 +11,7 @@ https://docs.djangoproject.com/en/4.1/ref/settings/
""" """
from pathlib import Path from pathlib import Path
import os import os
from dotenv import load_dotenv from dotenv import load_dotenv
load_dotenv() load_dotenv()
...@@ -44,6 +44,7 @@ INSTALLED_APPS = [ ...@@ -44,6 +44,7 @@ INSTALLED_APPS = [
'announcement_board', 'announcement_board',
'dashboard', 'dashboard',
'forum', 'forum',
'assignments'
] ]
MIDDLEWARE = [ MIDDLEWARE = [
......
...@@ -21,4 +21,5 @@ urlpatterns = [ ...@@ -21,4 +21,5 @@ urlpatterns = [
path('admin/', admin.site.urls), path('admin/', admin.site.urls),
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")),
] ]
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