Commit 1441e2d6 authored by Emmanuel Linus T. Evangelista's avatar Emmanuel Linus T. Evangelista
parents 4140b9ba b336cfa4
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', namespace='Forum')),
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