Opened 14 years ago

Closed 14 years ago

#904 closed enhancement (fixed)

[PATCH] If DJANGO_SETTINGS_MODULE is not set, walk the filesystem for settings-file before bailing

Reported by: deric <deric@…> Owned by: Adrian Holovaty
Component: Core (Other) Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


As discussed on the django-dev mailinglist. Currently the translation stuff uses the DJANGO_SETTINGS_MODULE env. var to key off the projectname. I've solved this in the patch by keying of the settings.ROOT_URLCONF instead. How project identification should be handled might be a good topic for further discussion...

Attachments (2)

django-env.diff (2.5 KB) - added by deric <deric@…> 14 years ago.
django-env_w_sympathy4win.diff (2.5 KB) - added by deric <deric@…> 14 years ago.

Download all attachments as: .zip

Change History (4)

Changed 14 years ago by deric <deric@…>

Attachment: django-env.diff added

Changed 14 years ago by deric <deric@…>

comment:1 Changed 14 years ago by deric <deric@…>

latest diff is with untested windows compatible paths

comment:2 Changed 14 years ago by Adrian Holovaty

Resolution: fixed
Status: newclosed

The new thing solves this problem in a different way, so I'm closing.

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