Imported http404

parent 86e8dc47
...@@ -2,6 +2,7 @@ from django.shortcuts import render ...@@ -2,6 +2,7 @@ from django.shortcuts import render
from django.views.generic.detail import DetailView from django.views.generic.detail import DetailView
from django.views.generic.edit import CreateView, UpdateView from django.views.generic.edit import CreateView, UpdateView
from .models import Announcement from .models import Announcement
from django.http import Http404
def index(request): def index(request):
announcement_view = "Widget's Announcement Board <br/>" announcement_view = "Widget's Announcement Board <br/>"
...@@ -16,7 +17,7 @@ def index(request): ...@@ -16,7 +17,7 @@ def index(request):
class AnnouncementsDetailView(DetailView): class AnnouncementsDetailView(DetailView):
model = Announcement model = Announcement
template_name = 'announcements/announcement-details.html' template_name = 'announcements/announcement-details.html'
class AnnouncementsCreateView(CreateView): class AnnouncementsCreateView(CreateView):
model = Announcement model = Announcement
......
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