Opened 10 years ago

Closed 10 years ago

#7622 closed (wontfix)

add default settings module

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

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@…> 10 years ago.
adds reasonable default for DJANGO_SETTINGS_MODULE
add_default_settings_module.diff (314 bytes) - added by Derek Anderson <public@…> 10 years ago.

Download all attachments as: .zip

Change History (7)

Changed 10 years ago by Derek Anderson <public@…>

Attachment: __init__.py.diff added

adds reasonable default for DJANGO_SETTINGS_MODULE

comment:1 Changed 10 years ago by Malcolm Tredinnick

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.

Changed 10 years ago by Derek Anderson <public@…>

comment:2 Changed 10 years ago by Derek Anderson <public@…>

proper patch added

comment:3 Changed 10 years ago by Jeff Anderson

Triage Stage: UnreviewedDesign decision needed

comment:4 Changed 10 years ago by Derek Anderson <public@…>

Patch needs improvement: unset

forgot to turn off needs_better_patch on 7/7

comment:5 Changed 10 years ago by Adrian Holovaty

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