When I checkout django from svn , this error happened , it seems come from #6154
..
File
"D:\myWay\stuhome_django\sdk\python\Lib\site-packages\django\newforms\forms.py"
in __init__
76. self.fields = self.base_fields.copy()
File
"D:\myWay\stuhome_django\sdk\python\Lib\site-packa
why create and get_or_create can't use id to set foerign key ?
for example I can't write like below:
Star.objects.get_or_create(user=request.user,title_id=title_id)
I have to write like this:
try:
Star.objects.get(user=request.user,title=title_id)
except Star.DoesNotExist:
>Sorry, but how is it connected to django?
I think this a bug of django?Or a bug of firefox in xp?
2007/9/25, Yuri Baburov <[EMAIL PROTECTED]>:
> Hi, 沈鹏.
>
> Sorry, but how is it connected to django?
> Of course, it's great that you have found out this.... ;)
>
I test the old edition in svn , seems not have this problem
2007/9/25, 张沈鹏(电子科大08年本科应届) <[EMAIL PROTECTED]>:
> >Sorry, but how is it connected to django?
> I think this a bug of django?Or a bug of firefox in xp?
>
>
>
> 2007/9/25, Yuri Baburov <[EMAIL PROTECTED]>
in urls.py
#
from django.contrib.auth.views import login, logout
...
(r'^accounts/login/$',login) ,
..
#
when your input a not exist username this will report error
it seems caused by
oh sorry , this maybe because I use db_dump.py load the data .
在 07-9-25,张沈鹏(电子科大08年本科应届)<[EMAIL PROTECTED]> 写道:
> in urls.py
> #
> from django.contrib.auth.views import login, logout
> ...
> (r
bug with Django version 0.97-pre-SVN-6423
not bug maybe use the version commit at 2007.9.13 ?
在 07-9-25,SanPy<[EMAIL PROTECTED]> 写道:
> Which revision?
>
> On 25 sep, 14:40, "张沈鹏(电子科大08年本科应届)" <[EMAIL PROTECTED]> wrote:
> > I test the old edition in svn , see
Opps , I test so many version , but none of them can do the right job.
Which one is I checkout previous time ?
I think this a big problem , I even can't write post form in firefox .
Who will do my favor to fix this :)
Thanks a lot
在 07-9-26,张沈鹏(电子科大08年本科应届)<[EMAIL PROTECTED]> 写道:
why it only happened in firefox ?
a strange question .
在 07-9-26,Reflejo<[EMAIL PROTECTED]> 写道:
> I can't understand how it is connected with django.
>
>
> BTW; don't do this:
> I mean: action equals "dot".
>
>
> --
> Martín Conte Mac Donell