Added announcement widget

parent 1454c90e
from django.db import models from django.db import models
# Create your models here. # Create your models here.
class Announcement(models.Model):
announcement_title = models.CharField(max_length=50)
announcement_body = models.CharField(max_length=500)
pub_date = models.DateTimeField("date published")
def __str__(self):
return self.name
\ No newline at end of file
...@@ -35,6 +35,8 @@ ALLOWED_HOSTS = [] ...@@ -35,6 +35,8 @@ ALLOWED_HOSTS = []
# Application definition # Application definition
INSTALLED_APPS = [ INSTALLED_APPS = [
'announcements.apps.AnnouncementsConfig',
'forum.apps.ForumConfig',
'homepage.apps.HomepageConfig', 'homepage.apps.HomepageConfig',
'assignments.apps.AssignmentsConfig', 'assignments.apps.AssignmentsConfig',
'django.contrib.admin', 'django.contrib.admin',
......
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