i using django package django-facebook, runs error when attempts save ta user's profile picture locally. running apache , have tried chown'ing folder www-data, have tried chmod'ing permissions a+w, error still prevails
environment: request method: request url: http://www.dancefund.com/facebook/connect/?attempt=1&code=aqbpcl0lr4bdziea0r-toihqzpj21l_mutgn0gb98e7lg1c9ffvfcz0vauqidmsvx3ppvhongdsyp5ox0tr1giifsnp9abozc15dyr78vdasd5cg25nl7xr5q9t98y1-6afc-htbzi1ienwxcpxlqjghrleqqrk1vk9da62ls1nswxkicrmoz8on1pljhxovrl6awm9feouvpllob0xa3_jzslw3m3rx01wf2mm1lgemwkhkqdaxekn3ozdm7o6fx8ivrfyrhpfk1ftch8pvtqx_0i2zlzh6m7syx943t9nvwmwwrhi4yei5khju7fm2un0 django version: 1.5.1 python version: 2.7.3 installed applications: ('django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.admin', 'polls', 'events', 'django_evolution', 'django_facebook') installed middleware: ('django.middleware.common.commonmiddleware', 'django.contrib.sessions.middleware.sessionmiddleware', 'django.middleware.csrf.csrfviewmiddleware', 'django.contrib.auth.middleware.authenticationmiddleware', 'django.contrib.messages.middleware.messagemiddleware') traceback: file "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response 115. response = callback(request, *callback_args, **callback_kwargs) file "/usr/local/lib/python2.7/dist-packages/django/views/decorators/csrf.py" in wrapped_view 77. return view_func(*args, **kwargs) file "/usr/local/lib/python2.7/dist-packages/django_facebook/decorators.py" in wrapped_view 98. response = self.authenticate(self.fn, request, *args, **kwargs) file "/usr/local/lib/python2.7/dist-packages/django_facebook/decorators.py" in authenticate 178. fn, request, graph=graph, *args, **kwargs) file "/usr/local/lib/python2.7/dist-packages/django_facebook/decorators.py" in execute_view 137. result = view_func(*args, **kwargs) file "/usr/local/lib/python2.7/dist-packages/django_facebook/views.py" in connect 40. response = _connect(request, graph) file "/usr/local/lib/python2.7/dist-packages/django_facebook/views.py" in _connect 81. request, connect_facebook=connect_facebook) file "/usr/local/lib/python2.7/dist-packages/django_facebook/connect.py" in connect_user 89. remove_old_connections=force_registration) file "/usr/local/lib/python2.7/dist-packages/django_facebook/connect.py" in _register_user 250. new_user = _update_user(new_user, facebook) file "/usr/local/lib/python2.7/dist-packages/django_facebook/connect.py" in _update_user 348. image_field.save(image_name, image_file) file "/usr/local/lib/python2.7/dist-packages/django/db/models/fields/files.py" in save 86. self.name = self.storage.save(name, content) file "/usr/local/lib/python2.7/dist-packages/django/core/files/storage.py" in save 48. name = self._save(name, content) file "/usr/local/lib/python2.7/dist-packages/django/core/files/storage.py" in _save 171. os.makedirs(directory) file "/usr/lib/python2.7/os.py" in makedirs 150. makedirs(head, mode) file "/usr/lib/python2.7/os.py" in makedirs 150. makedirs(head, mode) file "/usr/lib/python2.7/os.py" in makedirs 150. makedirs(head, mode) file "/usr/lib/python2.7/os.py" in makedirs 150. makedirs(head, mode) file "/usr/lib/python2.7/os.py" in makedirs 157. mkdir(name, mode) exception type: oserror @ /facebook/connect/ exception value: [errno 13] permission denied: '/images'
Comments
Post a Comment