Using the most recent package of django-cms - it requires a package called ipdb. I installed it and now I cannot get past the error:
[Errno 13] Permission denied: '/var/www/.ipython'
I changed the permission of the folder and it didn't work.
I also created the file manually - but then the error is:
[Errno 17] File exists: '开发者_C百科/var/www/.ipython'
My google-foo has faulted to resolve this.
The permissions on this folder I changed to the current user used to login. Is there a particular user I can apply to this folder of which I don't know about?
Fixed!
After the advice I had a further poke around to get it working:
- chmod 777 on the parent folder of which will contain the .ipython file
- chmod 777 on the .ipython once created
- chmod 755 onto parent folder again.
Works!
It seems this file must be executable - of course I don't want that on my main folder, so I can allow it to be created and then revert my changes.
Thanks you both for your advice
The user with which you are trying to access /var/www isn't allowed to do so. You either use a different user or you change the permissions of /var/www.
This is btw not a python question, it's a linux question.
With ls -l /var/www
you can see who is allowed to create new files inside the directory.
A little guide that shall explain to you how permissions work in linux: http://www.linuxquestions.org/linux/answers/Security/Quick_and_Dirty_Guide_to_Linux_File_Permissions
精彩评论