On Nov 12, 11:44 pm, Steve Holden <[EMAIL PROTECTED]> wrote:
> 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.

For more information see:

http://code.google.com/p/modwsgi/wiki/ApplicationIssues#Access_Rights_Of_Apache_User
http://code.google.com/p/modwsgi/wiki/ApplicationIssues#Application_Working_Directory

Still relevant if not using mod_wsgi but instead using mod_python.

Graham
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to