Opened 8 years ago

Closed 8 years ago

#5307 closed (fixed)

django should make files created by startproject/startapp writeable

Reported by: Thomas Stromberg Owned by: adrian
Component: Core (Management commands) Version: master
Severity: Keywords: permissions startproject startapp
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation:
Needs tests: Patch needs improvement:
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@…> 8 years ago.
Patch to implement said changes, including addition of _make_writeable()

Download all attachments as: .zip

Change History (2)

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

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

comment:1 Changed 8 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

(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