your original error was due to exceding django's max upload size. check out https://docs.djangoproject.com/en/2.1/ref/settings/#data-upload-max-memory-size
also, you should check out https://djangopackages.org/grids/g/pdf/ What I would do is generate the pdf in the view from a rendered template and then send from email. No need to generate it on the client and upload for an email. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/506231af-2c44-4e8c-9c9d-36d8ea913b7b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.