def dhcp_config(request): if not api.is_authenticated(request): return HttpResponseForbidden('API key required.') return HttpResponse(generate_dhcp_config(), content_type="text/plain")
def handle(self, *args, **options): print(generate_dhcp_config())