Browse Source

praktikum Aufgabe9

master
Nadege 5 years ago
parent
commit
cc1f99bb3c
4 changed files with 2 additions and 9 deletions
  1. 0
    0
      news/routing.py
  2. 1
    1
      news/settings.py
  3. 0
    8
      posts/templates/posts/notice.html
  4. 1
    0
      posts/views.py

posts/routing.py → news/routing.py View File


+ 1
- 1
news/settings.py View File

] ]


WSGI_APPLICATION = 'news.wsgi.application' WSGI_APPLICATION = 'news.wsgi.application'
ASGI_APPLICATION = 'posts.routing.application'
ASGI_APPLICATION = 'news.routing.application'




# Database # Database

+ 0
- 8
posts/templates/posts/notice.html View File



<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 %}
</script> </script>


{% endblock %} {% endblock %}

<style>
.test{
background-color: darkgray;
}
</style>

+ 1
- 0
posts/views.py View File

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…
Cancel
Save