How I can take a photo with my Pc and save it in the server

Hello, I need to take a photo with the web camera of my Pc, that code functions fine, but I need to save the photo in a disk carpet to take it after. How i can do this?.

path(‘tomar_foto/’, CamaraWebView.as_view(), name=“tomar_foto”),

class CamaraWebView(TemplateView):
template_name = “pedidos/fotos_camara_web6.html”

{% extends “pedidos/base_pedidos.html” %}
{% load crispy_forms_tags %}
{% load static %}
{% block content %}

Take Photo photo of you
{% csrf_token %}
{% endblock %}