startproject breaks if django files are read-only (settings.py)
|Reported by:||tstromberg@…||Owned by:||adrian|
|Component:||Core (Management commands)||Version:||master|
|Has patch:||yes||Needs documentation:|
|Needs tests:||Patch needs improvement:|
We keep all of our dependencies, including Django, in a local revision control repository. In our system, all files are stored read-only unless you have them checked out for edit. Django startproject makes a copy of settings.py and adds a secret key to it, but does not check to see if settings.py is writeable beforehand. I've attached a patch that we will be using in our internal copy of Django, which is against an SVN checkout from today.