Use django forms to create a new file
You can handle the logic in your view where the form is called.
def my_view(request):
    if form.is_valid():
        do_something_with_data()
I would be more specific but it's challenging when there is no code to reference.
I apologize if this is obvious, but I'm relatively new to Django and couldn't find any resources for this.
Goal
I would like to create unique invoices that are stored on my server (or a CDN) when a form is filled out.
Question
Would it be possible to use Django forms to create an HTML file with a unique URL (or upload the newly created file to AWS).
I understand how to upload files, I just can't quite figure out how to create a new file using a form.
Update
The reason why I want to create a unique file is so that I can email the invoice to the customer so that they can view the invoice at a later point.