Opened 10 years ago

Closed 10 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
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: UI/UX:

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

Download all attachments as: .zip

Change History (4)

Changed 10 years ago by deric <deric@…>

Changed 10 years ago by deric <deric@…>

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

latest diff is with untested windows compatible paths

comment:2 Changed 10 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

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