Commit b336cfa4 authored by kaiouseis's avatar kaiouseis

Created Announcement Board, linked /announcements

parent bb6bafca
from django.contrib import admin
# Register your models here.
from django.apps import AppConfig
class AnnouncementsConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'Announcements'
from django.db import models
# Create your models here.
from django.test import TestCase
# Create your tests here.
from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index')
]
\ No newline at end of file
from django.shortcuts import render
from django.http import HttpResponse
def index(request):
return HttpResponse("This is the Announcement Board!")
\ No newline at end of file
SECRET_KEY='django-insecure-aotv!!p2=ne5#81l@(ddnr8#cunkl!9e78#+s-!q!^977pnrl4'
\ No newline at end of file
SECRET_KEY='SECRET_KEY'
\ No newline at end of file
......@@ -19,5 +19,6 @@ from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path('forum/', include('Forum.urls')),
path('homepage/', include('Homepage.urls', namespace="Homepage"))
path('homepage/', include('Homepage.urls', namespace="Homepage")),
path('announcements/', include('Announcements.urls'))
]
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