File: views.py

package info (click to toggle)
python-django-contrib-comments 2.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,780 kB
  • sloc: python: 2,392; makefile: 142; xml: 15; sh: 6
file content (17 lines) | stat: -rw-r--r-- 479 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from django.http import HttpResponse


def custom_submit_comment(request):
    return HttpResponse("Hello from the custom submit comment view.")


def custom_flag_comment(request, comment_id):
    return HttpResponse("Hello from the custom flag view.")


def custom_delete_comment(request, comment_id):
    return HttpResponse("Hello from the custom delete view.")


def custom_approve_comment(request, comment_id):
    return HttpResponse("Hello from the custom approve view.")