Fixed.

On Jan 20, 5:39 pm, neridaj <[email protected]> wrote:
> I tried changing permissions to 777 for the static directory and the
> protected directory but get this error, any ideas?
>
> Traceback:
> File "/usr/lib/python2.6/dist-packages/django/core/handlers/base.py"
> in get_response
>   92.                 response = callback(request, *callback_args,
> **callback_kwargs)
> File "/usr/lib/python2.6/dist-packages/django/contrib/admin/
> options.py" in wrapper
>   226.                 return self.admin_site.admin_view(view)(*args,
> **kwargs)
> File "/usr/lib/python2.6/dist-packages/django/utils/decorators.py" in
> __call__
>   23.         return self.decorator(self.func)(*args, **kwargs)
> File "/usr/lib/python2.6/dist-packages/django/views/decorators/
> cache.py" in _wrapped_view_func
>   70.         response = view_func(request, *args, **kwargs)
> File "/usr/lib/python2.6/dist-packages/django/contrib/admin/sites.py"
> in inner
>   186.             return view(request, *args, **kwargs)
> File "/usr/lib/python2.6/dist-packages/django/db/transaction.py" in
> _commit_on_success
>   240.                 res = func(*args, **kw)
> File "/usr/lib/python2.6/dist-packages/django/contrib/admin/
> options.py" in add_view
>   734.                 self.save_model(request, new_object, form,
> change=False)
> File "/usr/lib/python2.6/dist-packages/django/contrib/admin/
> options.py" in save_model
>   557.         obj.save()
> File "/usr/lib/python2.6/dist-packages/product/models.py" in save
>   1576.         super(DownloadableProduct, self).save()
> File "/usr/lib/python2.6/dist-packages/django/db/models/base.py" in
> save
>   410.         self.save_base(force_insert=force_insert,
> force_update=force_update)
> File "/usr/lib/python2.6/dist-packages/django/db/models/base.py" in
> save_base
>   485.                     values = [(f, f.get_db_prep_save(raw and
> getattr(self, f.attname) or f.pre_save(self, True))) for f in
> meta.local_fields]
> File "/usr/lib/python2.6/dist-packages/django/db/models/fields/
> files.py" in pre_save
>   252.             file.save(file.name, file, save=False)
> File "/usr/lib/python2.6/dist-packages/django/db/models/fields/
> files.py" in save
>   91.         self.name = self.storage.save(name, content)
> File "/usr/lib/python2.6/dist-packages/django/core/files/storage.py"
> in save
>   47.         name = self._save(name, content)
> File "/usr/lib/python2.6/dist-packages/django/core/files/storage.py"
> in _save
>   146.             os.makedirs(directory)
> File "/usr/lib/python2.6/os.py" in makedirs
>   150.             makedirs(head, mode)
> File "/usr/lib/python2.6/os.py" in makedirs
>   157.     mkdir(name, mode)
>
> Exception Type: OSError at /admin/product/downloadableproduct/add/
> Exception Value: (13, 'Permission denied'
>
> Exception Location:     /usr/lib/python2.6/os.py in makedirs, line 157
>
> ----- LINE 150 -----
> e
> OSError(13, 'Permission denied')
> head
> '/static'
> mode
> 511
> name
> '/static/protected'
> tail
> 'protected'
>
> ----- LINE 157 -----
>
> head
> '/'
> mode
> 511
> name
> '/static'
> tail
> 'static'
-- 
You received this message because you are subscribed to the Google Groups 
"Satchmo users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/satchmo-users?hl=en.


Reply via email to