WebFaction
Community site: login faq

Hello,

I've been following the Django setup step by step. I'm not sure what I've missed (no log entries to help), but I get the following error when I run: python2.7 manage.py collectstatic in my app/project directory:

OSError: [Errno 13] Permission denied: '/home/username'

I suppose I have not setup an alias somewhere (that I did not see or missed in the guide:

http://docs.webfaction.com/software/django/getting-started.html
 File "/home/<user>/webapps/<app>/lib/python2.7/django/core/files/storage.py", line 168, in _save
    os.makedirs(directory)
    File "/usr/local/lib/python2.7/os.py", line 150, in makedirs
    makedirs(head, mode)
    File "/usr/local/lib/python2.7/os.py", line 150, in makedirs
    makedirs(head, mode)
    File "/usr/local/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/home/username'

Hopefully I'll find my environment setup error soon, but I'm posting this in case others run into the problem.

asked 29 Nov '12, 06:26

webfunction
3615
accept rate: 100%

edited 29 Nov '12, 06:27


Grepped around and found that I hadn't set the STATIC_ROOT with my username directory.

permanent link

answered 29 Nov '12, 07:55

webfunction
3615
accept rate: 100%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×905
×33
×12
×5
×4

question asked: 29 Nov '12, 06:26

question was seen: 9,886 times

last updated: 29 Nov '12, 07:55

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM