Re: [Errno 13] Permission denied while using apache2

2008-11-12 Thread Steve Holden

laspal wrote:
> hi,
> I am trying to create folder.
> here is the code:
> if not os.path.isdir(str(_user.username)):
>  os.mkdir(str(_user.username) )
> filepathwithname = os.path.join(str(_user.username), file_name)
> if not os.path.isfile(filepathwithname):
> workbook.save(os.path.join(str(_user.username),
> file_name))
>
> The problem is I am getting permission denied error.
> It works fine when I am using  runserver. but getting error while
> using apache2
>
> Can anyone help me out.
>   
What's the current directory when that code runs under Apache? It's
likely not the same as when you run it under runserver ... so you will
either need to change its permissions or switch to a directory you *do*
have permissions on.

regards
 Steve


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



[Errno 13] Permission denied while using apache2

2008-11-12 Thread laspal

hi,
I am trying to create folder.
here is the code:
if not os.path.isdir(str(_user.username)):
 os.mkdir(str(_user.username) )
filepathwithname = os.path.join(str(_user.username), file_name)
if not os.path.isfile(filepathwithname):
workbook.save(os.path.join(str(_user.username),
file_name))

The problem is I am getting permission denied error.
It works fine when I am using  runserver. but getting error while
using apache2

Can anyone help me out.

Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---