Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2016
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. @api_view(["POST"])
  2. def start_stop(request):
  3. if request.method == "POST":
  4. from django.core.management import call_command
  5. call_command('poster')
  6. return HttpResponse('Success')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement