Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @api_view(["POST"])
- def start_stop(request):
- if request.method == "POST":
- from django.core.management import call_command
- call_command('poster')
- return HttpResponse('Success')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement