Opened 19 years ago

Closed 19 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

Description

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@…> 19 years ago.
django-env_w_sympathy4win.diff (2.5 KB ) - added by deric <deric@…> 19 years ago.

Download all attachments as: .zip

Change History (4)

by deric <deric@…>, 19 years ago

Attachment: django-env.diff added

by deric <deric@…>, 19 years ago

comment:1 by deric <deric@…>, 19 years ago

latest diff is with untested windows compatible paths

comment:2 by Adrian Holovaty, 19 years ago

Resolution: fixed
Status: newclosed

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

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