diff --git a/posts/routing.py b/news/routing.py similarity index 100% rename from posts/routing.py rename to news/routing.py diff --git a/news/settings.py b/news/settings.py index cbcb581..3859bcc 100644 --- a/news/settings.py +++ b/news/settings.py @@ -74,7 +74,7 @@ TEMPLATES = [ ] WSGI_APPLICATION = 'news.wsgi.application' -ASGI_APPLICATION = 'posts.routing.application' +ASGI_APPLICATION = 'news.routing.application' # Database diff --git a/posts/templates/posts/notice.html b/posts/templates/posts/notice.html index bb2fc92..131c983 100644 --- a/posts/templates/posts/notice.html +++ b/posts/templates/posts/notice.html @@ -3,8 +3,6 @@

Seite Infos

- -
{% for notice in allnotice %} @@ -24,9 +22,3 @@ {% endblock %} - - \ No newline at end of file diff --git a/posts/views.py b/posts/views.py index a63792e..498fc56 100644 --- a/posts/views.py +++ b/posts/views.py @@ -49,6 +49,7 @@ def delete(request, deleteId = None): delNotice = Notice.objects.get(id=deleteId) if delNotice != None: delNotice.delete() + send_event('notice', 'message', deleteId) return redirect('index') @csrf_exempt