praktikum Aufgabe9
This commit is contained in:
parent
d1ac7586f7
commit
cc1f99bb3c
@ -74,7 +74,7 @@ TEMPLATES = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
WSGI_APPLICATION = 'news.wsgi.application'
|
WSGI_APPLICATION = 'news.wsgi.application'
|
||||||
ASGI_APPLICATION = 'posts.routing.application'
|
ASGI_APPLICATION = 'news.routing.application'
|
||||||
|
|
||||||
|
|
||||||
# Database
|
# Database
|
||||||
|
@ -3,8 +3,6 @@
|
|||||||
|
|
||||||
<h2>Seite Infos</h2>
|
<h2>Seite Infos</h2>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="card w-100">
|
<div class="card w-100">
|
||||||
<div class="card-body jumbotron" style="background: ghostwhite">
|
<div class="card-body jumbotron" style="background: ghostwhite">
|
||||||
{% for notice in allnotice %}
|
{% for notice in allnotice %}
|
||||||
@ -24,9 +22,3 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
<style>
|
|
||||||
.test{
|
|
||||||
background-color: darkgray;
|
|
||||||
}
|
|
||||||
</style>
|
|
@ -49,6 +49,7 @@ def delete(request, deleteId = None):
|
|||||||
delNotice = Notice.objects.get(id=deleteId)
|
delNotice = Notice.objects.get(id=deleteId)
|
||||||
if delNotice != None:
|
if delNotice != None:
|
||||||
delNotice.delete()
|
delNotice.delete()
|
||||||
|
send_event('notice', 'message', deleteId)
|
||||||
return redirect('index')
|
return redirect('index')
|
||||||
|
|
||||||
@csrf_exempt
|
@csrf_exempt
|
||||||
|
Loading…
x
Reference in New Issue
Block a user