Database settings should not be kept in settings.main for ease of packaging.
|Reported by:||Owned by:||Adrian Holovaty|
|Severity:||normal||Keywords:||django-admin database settings distribution|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I'm currently developing a project which I hope will be reusable. This obviously includes a certain amoutn fo setting thins up in settings.main. However, when it comes to packaging this project, I'm goign to have to keep remembering to remove my database setting from the file before uploading. Ditto if I want to keep my project in a public svn repository.
I propose moving the database settigns by default to settings/db.py which will be imported from within main.py
This file will be created by
django-admin startproject but a new command should be added to just add the skeleton db.py file to projects that have been distributed without it.