Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POSTs to wrong path on S3 when editting pre-existing photo in django admin #11

Open
evbo opened this issue Apr 16, 2014 · 0 comments
Open

Comments

@evbo
Copy link

evbo commented Apr 16, 2014

I am able to create new photos and delete them with the result POSTing an image (uploading it) to my Amazon S3 account.

However, if I go back and edit that photologue photo (say change the name), I get a 400 Invalid Request error from django. It seems that when editing a pre-existing photo, it tries to POST to an admin location (even though the images exist in the media folder - no admin). Again, I can create and delete photos just fine, but editing them causes this error (such as changing tags, name, description, etc).

Here is the log from heroku after I save any changes to a photologue photo:

2014-04-16T23:13:31.889623+00:00 heroku[router]: at=info method=POST path=/admin /photologue/photo/22/ host=myapp.herokuapp.com request_id=blablablabla fwd="x.x.x.x" dyno=web.1 connect=1ms service=997ms sta tus=400 bytes=211

How might photologue be configured so that when editting any changes to a pre-existing photo, it POSTs the result back to the correct location (where it was originally created using the same django admin interface)?

My current work around is every time I need to edit a photo I just delete it and re-upload it with any changes to the meta data I require.

@evbo evbo changed the title Filter django-tags Filter Photos by Regex Constraints on Tags Apr 16, 2014
@evbo evbo changed the title Filter Photos by Regex Constraints on Tags django admin edit photo POSTs to wrong path Apr 17, 2014
@evbo evbo changed the title django admin edit photo POSTs to wrong path django admin POSTs to wrong path when editting pre-existing photo Apr 17, 2014
@evbo evbo changed the title django admin POSTs to wrong path when editting pre-existing photo POSTs to wrong path when editting pre-existing photo Apr 17, 2014
@evbo evbo changed the title POSTs to wrong path when editting pre-existing photo POSTs to wrong path on S3 when editting pre-existing photo in django admin Apr 17, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant