Django imagefield Error

Hi, i setup django framework using this and it works.

I have a model with an image field and i setup an upload_to

in settings i use this configuration

[code]MEDIA_ROOT = os.path.dirname(BASE_DIR) + '/public/media/'
MEDIA_URL = ‘/media/’

IMAGE_PROFILE_PATH = ‘image_profile/’

IMAGE_CONTENT_PATH = ‘image_content/’

IMAGE_SOCIAL_PATH = ‘image_social/’

VIDEO_CONTENT_PATH = ‘video_content/’[/code]

When i try to upload an image from admin i receive an error of premature end of script.

do you have any idea of what is wrong? i think that is something in path… i tried several options but no one work!

thanks a lot!