Imported http404

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