What is the best Google App Engine blog workflow?

What is the best workflow for uploading a file to blobstore while saving blob information and other fields for writing a model?

For example, should I submit the form to the blobstore download URL (blobstore.create_upload_url), clear the form, redirect if there are errors, and save and redirect if not?

What is the best way to pass errors? GET variables? I tried using models to save form errors and redirects based on the instance of the form error model, but it was dirty. Any ideas?

+3
source share
1 answer

, , , . (, create_upload_url) post . , BlobInfo.key . , memcache , memcache .

, .

  • POST
  • , BlobInfo.key, memcache memcache URL-
  • memcache
0

Source: https://habr.com/ru/post/1787021/


All Articles