Opened 15 years ago

Closed 15 years ago

#176 closed defect (invalid)

Database settings should not be kept in settings.main for ease of packaging.

Reported by: moof@… Owned by: Adrian Holovaty
Component: Tools Version:
Severity: normal Keywords: django-admin database settings distribution
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: 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/ which will be imported from within

This file will be created by django-admin startproject but a new command should be added to just add the skeleton file to projects that have been distributed without it.

Change History (2)

comment:1 Changed 15 years ago by moof@…

Looking at it, it's a bit more complex than that, isn't it?

I suppose what I'm trying to do is remove things like INSTALLED_APPS from the main settings file.

Or maybe I'm just not getting how to distribute an application.

comment:2 Changed 15 years ago by Moof <moof@…>

Resolution: invalid
Status: newclosed

Hmm, now I've played with it a bit more, I get it. No need to change. Sorry for the bother.

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