On Sat, 2010-10-23 at 12:07 +0100, Luca Sbardella wrote:
> ImportError: Settings cannot be imported, because environment variable
> DJANGO_SETTINGS_MODULE is undefined
> 
> Hi guys,
> nothing to do with 1.3 awesome new features...
> but I'm trying to use django forms outside django (why not!).
> Not possible because of the above.
> 
> The settings is imported in django.forms.widgets and only used by the
> Media class absolute_path function.
> I think that import should be removed and the absolute_path function
> written differently. Anyone agrees?

'differently' is entirely too vague here.  What concrete, *backwards
compatible* proposal do you have for eliminating the dependency on the
settings file in that method?

Luke

-- 
"If you do a job badly enough, sometimes you don't get asked to do 
it again." (Calvin and Hobbes)

Luke Plant || http://lukeplant.me.uk/

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

Reply via email to