Opened 18 years ago

Closed 18 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 Holovaty
Component: Core (Management commands) Version: dev
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

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@… 18 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)

by masonsimon+django@…, 18 years ago

Attachment: management.py.diff added

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

comment:1 by Adrian Holovaty, 18 years ago

Resolution: fixed
Status: newclosed

(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