django should make files created by startproject/startapp writeable
|Reported by:||Thomas Stromberg||Owned by:||Adrian Holovaty|
|Component:||Core (Management commands)||Version:||master|
|Severity:||Keywords:||permissions startproject startapp|
|Has patch:||yes||Needs documentation:|
|Needs tests:||Patch needs improvement:|
I noticed today that my previous fix (see Ticket #4688) only changed permissions for settings.py. We actually have the same problem with the files created by startapp from our read-only Django repository. This patch moves the permissions manipulation away from startproject.py to base.py, and is run for anything that uses copy_helper(). It also improves upon the old patch by calculating the proper permissions to achieve user-writeability rather than hardcoding 0600.
The attached patch is against today's trunk checkout.