Commit 27c52007 authored by Emilio Gentolia's avatar Emilio Gentolia

Changed app name from 'announcements' to 'announcement_board'

parent 6a821be0
from django.apps import AppConfig from django.apps import AppConfig
class AnnouncementsConfig(AppConfig): class AnnouncementBoardConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField' default_auto_field = 'django.db.models.BigAutoField'
name = 'announcements' name = 'announcement_board'
verbose_name = 'Announcement Board'
# Generated by Django 4.0.3 on 2022-03-22 04:15 # Generated by Django 4.0.3 on 2022-03-22 05:00
from django.db import migrations, models from django.db import migrations, models
......
...@@ -4,4 +4,3 @@ class Announcement(models.Model): ...@@ -4,4 +4,3 @@ class Announcement(models.Model):
announcement_title = models.CharField(max_length=120) announcement_title = models.CharField(max_length=120)
announcement_body = models.TextField(blank=True) announcement_body = models.TextField(blank=True)
pub_date = models.DateField(auto_now_add=True) pub_date = models.DateField(auto_now_add=True)
...@@ -6,4 +6,4 @@ urlpatterns = [ ...@@ -6,4 +6,4 @@ urlpatterns = [
path('', index, name='index'), path('', index, name='index'),
] ]
app_name = "announcements" app_name = "announcement_board"
\ No newline at end of file \ No newline at end of file
...@@ -45,7 +45,7 @@ INSTALLED_APPS = [ ...@@ -45,7 +45,7 @@ INSTALLED_APPS = [
'forum', 'forum',
'assignments', 'assignments',
'homepage', 'homepage',
'announcements', 'announcement_board',
] ]
MIDDLEWARE = [ MIDDLEWARE = [
......
...@@ -20,6 +20,6 @@ urlpatterns = [ ...@@ -20,6 +20,6 @@ urlpatterns = [
path('homepage/', include("homepage.urls", namespace='homepage')), path('homepage/', include("homepage.urls", namespace='homepage')),
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("announcements.urls", namespace='announcements')), path('announcements/', include("announcement_board.urls", namespace='announcement_board')),
path('assignments/', include("assignments.urls", namespace='assignments')), 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