Skip to content
Browse files

Made static serving work by making the upload: statement only upload …

…static files. However, this means that voting.py did not have access to static/robohornet.png, so make a copy for it to use.
  • Loading branch information...
1 parent 3688f91 commit ad0a823f6ab964f25bd33bbda5282c04b8249f06 @jkomoros jkomoros committed Sep 24, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 app.yaml
  2. BIN robohornet.png
  3. +1 −1 voting.py
View
2 app.yaml
@@ -16,4 +16,4 @@ handlers:
upload: static/robohornet.html
- url: /(.*)
static_files: static/\1
- upload: .*
+ upload: static/.*
View
BIN robohornet.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
2 voting.py
@@ -36,7 +36,7 @@
LATO_BLACK = ImageFont.truetype("static/fonts/Lato-Black.ttf", 46)
#TODO: express the resizing in terms of constants
-LOGO = Image.open("static/robohornet.png").resize((46,46))
+LOGO = Image.open("robohornet.png").resize((46,46))
def draw_invalid_issue_image():
message = "No such issue"

0 comments on commit ad0a823

Please sign in to comment.
Something went wrong with that request. Please try again.