Opened 11 years ago

Closed 11 years ago

#5307 closed (fixed)

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
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


I noticed today that my previous fix (see Ticket #4688) only changed permissions for 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 to, 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.

Attachments (1)

patch.trunk (2.2 KB) - added by Thomas Stromberg <tstromberg@…> 11 years ago.
Patch to implement said changes, including addition of _make_writeable()

Download all attachments as: .zip

Change History (2)

Changed 11 years ago by Thomas Stromberg <tstromberg@…>

Attachment: patch.trunk added

Patch to implement said changes, including addition of _make_writeable()

comment:1 Changed 11 years ago by Adrian Holovaty

Resolution: fixed
Status: newclosed

(In [6028]) Fixed #5307 -- startproject/startapp now makes sure all files it creates are writeable. Thanks, Thomas Stromberg

Note: See TracTickets for help on using tickets.
Back to Top