# HG changeset patch # User Brian Neal # Date 1378685214 18000 # Node ID b2a8fde3173a30f628f3063d33944e7842965fa9 # Parent 2d35e5f97a992aa0462799421e06f8dcb00332d7 Got the image resizing and uploading working. It needs a lot of work though. This commit is just to capture something that works. diff -r 2d35e5f97a99 -r b2a8fde3173a sg101/settings/base.py --- a/sg101/settings/base.py Sat Sep 07 20:50:46 2013 -0500 +++ b/sg101/settings/base.py Sun Sep 08 19:06:54 2013 -0500 @@ -292,9 +292,13 @@ WIKI_REDIS_SET = 'wiki_cookie_keys' # User photo upload settings -USER_PHOTO_ENABLED = True -USER_PHOTO_ACCESS_KEY = SECRETS['AWS_ACCESS_KEY'] -USER_PHOTO_SECRET_KEY = SECRETS['AWS_SECRET_KEY'] +USER_PHOTOS_ENABLED = True +USER_PHOTOS_ACCESS_KEY = SECRETS['AWS_ACCESS_KEY'] +USER_PHOTOS_SECRET_KEY = SECRETS['AWS_SECRET_KEY'] +USER_PHOTOS_BUCKET = 'sg101.user.photos' +USER_PHOTOS_BASE_URL = 'https://s3-us-west-1.amazonaws.com' +USER_PHOTOS_MAX_SIZE = (660, 720) +USER_PHOTOS_THUMB_SIZE = (120, 120) ####################################################################### # Asynchronous settings (queues, queued_search, redis, celery, etc) diff -r 2d35e5f97a99 -r b2a8fde3173a sg101/templates/user_photos/photo_detail.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sg101/templates/user_photos/photo_detail.html Sun Sep 08 19:06:54 2013 -0500 @@ -0,0 +1,18 @@ +{% extends 'base.html' %} +{% block title %}User Photo Details{% endblock %} +{% block content %} +

User Photo Details

+ +