Opened 8 years ago

Closed 8 years ago

#2956 closed defect (fixed)

[patch] "django-admin.py startproject" fails unnecessarily when permissions can't be set for the new project.

Reported by: masonsimon+django@… Owned by: adrian
Component: Core (Management commands) Version: master
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

Running "django-admin.py startproject new_project_name" in an environment where permissions can't be set (a FAT32 partition mounted under Linux, in my case) results in an OSError. This doesn't need to happen if the user doesn't mind that permissions for the new project won't be set as django-admin.py wants to set them.

Attachments (1)

management.py.diff (1.2 KB) - added by masonsimon+django@… 8 years ago.
Patch that prompts user for action when permissions can't be set on a file.

Download all attachments as: .zip

Change History (2)

Changed 8 years ago by masonsimon+django@…

Patch that prompts user for action when permissions can't be set on a file.

comment:1 Changed 8 years ago by adrian

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

(In [3941]) Fixed #2956 -- Made 'django-admin.py startproject' tolerant of filesystem arrangements that cannot accept file-permission changes. Thanks for the patch, masonsimon+django@…

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