Re: from django import forms

2010-10-23 Thread Luca Sbardella
http://github.com/lsbardel/django/commit/9215082052b5d0ea0d0116ddeb08345452ae5358 As I said, not great but it works. On 23 October 2010 15:26, Luca Sbardella wrote: > ups. > > the settings import is also in django.forms.models > > from django.db import connections > > I still strongly think dja

Re: from django import forms

2010-10-23 Thread Luca Sbardella
ups. the settings import is also in django.forms.models from django.db import connections I still strongly think django.forms should be import django.conf free at module level. I'll come up with an idea. On 23 October 2010 13:29, Luca Sbardella wrote: > I left it vague on purpose. > My probl

Re: from django import forms

2010-10-23 Thread Luca Sbardella
I left it vague on purpose. My problem is I cannot import forms outside django, not the function itself. I don't have an opinion on how best to re-implemented it in backward compatible fashion. But I can come up with one. All I needed to know is if is there an appetite for this? and if so, a guidel

Re: from django import forms

2010-10-23 Thread Luke Plant
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!). > No

from django import forms

2010-10-23 Thread Luca Sbardella
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.fo