Update announcements/models.py, announcements/admin.py, widget_placeholdername/settings.py files

parent 07dd17ee
from django.contrib import admin
# Register your models here.
from .models import Announcement
admin.site.register(Announcement)
\ No newline at end of file
from django.db import models
# 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")
......@@ -35,6 +35,7 @@ ALLOWED_HOSTS = []
INSTALLED_APPS = [
'homepage.apps.HomepageConfig',
'announcements.apps.AnnouncementsConfig',
'Forum.apps.ForumConfig',
'assignments.apps.AssignmentsConfig',
'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