Opened 16 years ago

Closed 16 years ago

#7622 closed (wontfix)

add default settings module

Reported by: Derek Anderson <public@…> Owned by: nobody
Component: Core (Other) Version: dev
Severity: Keywords:
Cc: Triage Stage: Design decision needed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

add a reasonable default to the django settings importer. some of us write notable quantities of helper scripts for our django apps, and i can see no reason not to try to open the default settings.py before kicking off the "no DJANGO_SETTINGS_MODULE set" error message.

Attachments (2)

__init__.py.diff (216 bytes ) - added by Derek Anderson <public@…> 16 years ago.
adds reasonable default for DJANGO_SETTINGS_MODULE
add_default_settings_module.diff (314 bytes ) - added by Derek Anderson <public@…> 16 years ago.

Download all attachments as: .zip

Change History (7)

by Derek Anderson <public@…>, 16 years ago

Attachment: __init__.py.diff added

adds reasonable default for DJANGO_SETTINGS_MODULE

comment:1 by Malcolm Tredinnick, 16 years ago

Patch needs improvement: set

I doubt this is a really good idea, since there's not necessarily a good set of defaults, but could you at least attach a proper patch (created from the root of the Django tree) so that we can see what you're trying to change here. That will help evaluate things better.

by Derek Anderson <public@…>, 16 years ago

comment:2 by Derek Anderson <public@…>, 16 years ago

proper patch added

comment:3 by Jeff Anderson, 16 years ago

Triage Stage: UnreviewedDesign decision needed

comment:4 by Derek Anderson <public@…>, 16 years ago

Patch needs improvement: unset

forgot to turn off needs_better_patch on 7/7

comment:5 by Adrian Holovaty, 16 years ago

Resolution: wontfix
Status: newclosed

I don't see any good reason to add this.

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