WebFaction
Community site: login faq

Hi,

I am trying to setup a new site and the image upload tools that I have in place are not working properly. The tools in the admin seem to work ok though.

I have two seperate image upload tools, one is the django-avatar package https://github.com/ericflo/django-avatar . This tool is spitting back the error of Permission denied: '/home/gwincr11/webapps/static_media_application' which is the media root setting as setup according to the webfaction guide with a static app.

The other is a form upload photo = models.ImageField(upload_to='recipe_images/',blank=True) this is also failing.

Any ideas?

Thanks in advance.

asked 16 Sep '11, 21:08

CG11
133
accept rate: 0%

Just to confirm, you're not actually using the string /home/gwincr11/webapps/static_media_application in your settings.py file, correct? The error message suggests this, but static_media_application would be replaced by the name of your static media application.

(16 Sep '11, 21:54) ryans ♦♦

Thanks for helping.

My settings.py setting is MEDIA_ROOT = '/home/gwincr11/webapps/static_media_application/'

(16 Sep '11, 22:10) CG11

ok, thanks that was my fault for miss reading the documentation. Now image uploads are working and I feel a bit silly :)

(16 Sep '11, 22:16) CG11

No worries. Glad it's working!

(16 Sep '11, 22:24) ryans ♦♦
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×909
×26
×2

question asked: 16 Sep '11, 21:08

question was seen: 4,123 times

last updated: 16 Sep '11, 22:24

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM