Python论坛  - 讨论区

标题:[python-chinese] newforms 中 使用 forms.ImageField 怎么说没有 ImageField 属性呢?

2008年01月04日 星期五 15:57

1234 mydjango在gmail.com
星期五 一月 4 15:57:02 HKT 2008

from django import newforms as forms

class UserProfileForm(forms.Form):
    avatar = forms.ImageField(upload_to="avatar/",required=False)
    birthdate =
forms.DateField(initial='2000-01-01',widget=SelectDateWidget(years=range(2010,
1940, -1)))
    blog = forms.URLField(required=False)
    about = forms.CharField(widget=forms.Textarea, required=False)


ÓõÄʱºò¾ÍÌáʾ
Error was: 'module' object has no attribute 'ImageField'
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20080104/92df30d1/attachment.htm 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2008年01月04日 星期五 16:05

beck917 beck917在gmail.com
星期五 一月 4 16:05:19 HKT 2008

ÄãÓõÄ0.96°æ±¾°É.ImageFieldÊÇ¿ª·¢°æÖÐмӵÄ

ÔÚ08-1-4£¬1234 <mydjango在gmail.com> дµÀ£º
>
> from django import newforms as forms
>
> class UserProfileForm(forms.Form):
>     avatar = forms.ImageField(upload_to="avatar/",required=False)
>     birthdate = forms.DateField(initial='2000-01-01',widget=SelectDateWidget(years=range(2010,
> 1940, -1)))
>     blog = forms.URLField(required=False)
>     about = forms.CharField(widget=forms.Textarea, required=False)
>
>
> ÓõÄʱºò¾ÍÌáʾ
> Error was: 'module' object has no attribute 'ImageField'
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20080104/33373e40/attachment.htm 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2008年01月04日 星期五 16:11

1234 mydjango在gmail.com
星期五 一月 4 16:11:50 HKT 2008

ÊDz»ÊÇÒª¸üе½×îа棿²ÅÐУ¿

ÔÚ08-1-4£¬beck917 <beck917在gmail.com> дµÀ£º
>
> ÄãÓõÄ0.96°æ±¾°É.ImageFieldÊÇ¿ª·¢°æÖÐмӵÄ
>
> ÔÚ08-1-4£¬1234 <mydjango在gmail.com> дµÀ£º
> >
> > from django import newforms as forms
> >
> > class UserProfileForm(forms.Form):
> >     avatar = forms.ImageField(upload_to="avatar/",required=False)
> >     birthdate = forms.DateField(initial='2000-01-01',widget=SelectDateWidget(years=range(2010,
> > 1940, -1)))
> >     blog = forms.URLField(required=False)
> >     about = forms.CharField(widget=forms.Textarea, required=False)
> >
> >
> > ÓõÄʱºò¾ÍÌáʾ
> > Error was: 'module' object has no attribute 'ImageField'
> >
> > _______________________________________________
> > python-chinese
> > Post: send python-chinese在lists.python.cn
> > Subscribe: send subscribe to python-chinese-request在lists.python.cn
> > Unsubscribe: send unsubscribe to
> > python-chinese-request在lists.python.cn
> > Detail Info: http://python.cn/mailman/listinfo/python-chinese
> >
>
>
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20080104/64d74e34/attachment.html 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2008年01月04日 星期五 16:29

beck917 beck917在gmail.com
星期五 一月 4 16:29:44 HKT 2008

àÅ,ÊǵÄ,0,96µÄnewforms»¹²»ÊǺÜÍêÉÆ

svnÏÂÔØа汾°É,:-)

ÔÚ08-1-4£¬1234 <mydjango在gmail.com> дµÀ£º
>
> ÊDz»ÊÇÒª¸üе½×îа棿²ÅÐУ¿
>
> ÔÚ08-1-4£¬beck917 <beck917在gmail.com> дµÀ£º
> >
> > ÄãÓõÄ0.96°æ±¾°É.ImageFieldÊÇ¿ª·¢°æÖÐмӵÄ
> >
> > ÔÚ08-1-4£¬1234 < mydjango在gmail.com> дµÀ£º
> > >
> > > from django import newforms as forms
> > >
> > > class UserProfileForm(forms.Form):
> > >     avatar = forms.ImageField(upload_to="avatar/",required=False)
> > >     birthdate = forms.DateField(initial='2000-01-01',widget=SelectDateWidget(years=range(2010,
> > > 1940, -1)))
> > >     blog = forms.URLField(required=False)
> > >     about = forms.CharField(widget=forms.Textarea, required=False)
> > >
> > >
> > > ÓõÄʱºò¾ÍÌáʾ
> > > Error was: 'module' object has no attribute 'ImageField'
> > >
> > > _______________________________________________
> > > python-chinese
> > > Post: send python-chinese在lists.python.cn
> > > Subscribe: send subscribe to python-chinese-request在lists.python.cn
> > > Unsubscribe: send unsubscribe to
> > > python-chinese-request在lists.python.cn
> > > Detail Info: http://python.cn/mailman/listinfo/python-chinese
> > >
> >
> >
> > _______________________________________________
> > python-chinese
> > Post: send python-chinese在lists.python.cn
> > Subscribe: send subscribe to python-chinese-request在lists.python.cn
> > Unsubscribe: send unsubscribe to
> > python-chinese-request在lists.python.cn
> > Detail Info: http://python.cn/mailman/listinfo/python-chinese
> >
>
>
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20080104/fe1ea4dc/attachment.htm 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2008年01月04日 星期五 16:45

1234 mydjango在gmail.com
星期五 一月 4 16:45:25 HKT 2008

лÁË ¡«¡«

ÔÚ08-1-4£¬beck917 <beck917在gmail.com> дµÀ£º
>
> àÅ,ÊǵÄ,0,96µÄnewforms»¹²»ÊǺÜÍêÉÆ
>
> svnÏÂÔØа汾°É,:-)
>
> ÔÚ08-1-4£¬1234 <mydjango在gmail.com> дµÀ£º
> >
> > ÊDz»ÊÇÒª¸üе½×îа棿²ÅÐУ¿
> >
> > ÔÚ08-1-4£¬beck917 <beck917在gmail.com > дµÀ£º
> > >
> > > ÄãÓõÄ0.96°æ±¾°É.ImageFieldÊÇ¿ª·¢°æÖÐмӵÄ
> > >
> > > ÔÚ08-1-4£¬1234 < mydjango在gmail.com> дµÀ£º
> > > >
> > > > from django import newforms as forms
> > > >
> > > > class UserProfileForm(forms.Form):
> > > >     avatar = forms.ImageField(upload_to="avatar/",required=False)
> > > >     birthdate = forms.DateField(initial='2000-01-01',widget=SelectDateWidget(years=range(2010,
> > > > 1940, -1)))
> > > >     blog = forms.URLField(required=False)
> > > >     about = forms.CharField(widget=forms.Textarea, required=False)
> > > >
> > > >
> > > > ÓõÄʱºò¾ÍÌáʾ
> > > > Error was: 'module' object has no attribute 'ImageField'
> > > >
> > > > _______________________________________________
> > > > python-chinese
> > > > Post: send python-chinese在lists.python.cn
> > > > Subscribe: send subscribe to python-chinese-request在lists.python.cn
> > > > Unsubscribe: send unsubscribe to
> > > > python-chinese-request在lists.python.cn
> > > > Detail Info: http://python.cn/mailman/listinfo/python-chinese
> > > >
> > >
> > >
> > > _______________________________________________
> > > python-chinese
> > > Post: send python-chinese在lists.python.cn
> > > Subscribe: send subscribe to python-chinese-request在lists.python.cn
> > > Unsubscribe: send unsubscribe to
> > > python-chinese-request在lists.python.cn
> > > Detail Info: http://python.cn/mailman/listinfo/python-chinese
> > >
> >
> >
> > _______________________________________________
> > python-chinese
> > Post: send python-chinese在lists.python.cn
> > Subscribe: send subscribe to python-chinese-request在lists.python.cn
> > Unsubscribe: send unsubscribe to
> > python-chinese-request在lists.python.cn
> > Detail Info: http://python.cn/mailman/listinfo/python-chinese
> >
>
>
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20080104/e9398c81/attachment.htm 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2024

    京ICP备05028076号