Commit Graph

60 Commits

Author SHA1 Message Date
d204c23b93
main.py: Try to upload to /tmp
Creating and uploading to an "uploads" directory works locally, but
on Google App Engine I get an HTTP 500. Let's try uploading to /tmp.
2021-03-11 16:06:33 +02:00
b3e66e1a8f
Add .gitignore 2021-03-11 15:56:56 +02:00
81b5206e97
Add simple HTML template with file upload
Code taken from the following blog posts:
  - https://pythonbasics.org/flask-upload-file
  - https://blog.miguelgrinberg.com/post/handling-file-uploads-with-flask
2021-03-11 15:55:58 +02:00
482cd25182
Add .gcloudignore
Something added by gcloud.
2021-03-11 14:38:03 +02:00
2a5f612fe9
Add main.py
Following basic Flask on Google App Engine tutorial:

https://realpython.com/python-web-applications/#build-a-basic-python-web-application
2021-03-11 14:32:50 +02:00
b04b441c3f
Add ipython to dev dependencies 2021-03-11 14:06:05 +02:00
446ef95519
Generate requirements.txt
Generated using poetry:

  $ poetry export --without-hashes -f requirements.txt > requirements.txt
2021-03-11 13:51:25 +02:00
2509655807
app.yaml: Add runtime for Google App Engine
Currently 3.9 is in preview so I'll use 3.8.

See: https://cloud.google.com/appengine/docs/standard/python3/runtime
2021-03-11 13:49:53 +02:00
a2126d6f3c
LICENSE.txt: Add copy of AGPLv3.0 license text
From: https://www.gnu.org/licenses/agpl-3.0.txt
2021-03-11 13:47:30 +02:00
a7be9ff1b7
Initial project creation with poetry init 2021-03-11 13:47:06 +02:00