Django-fr

Forum

  • Accueil
  • » Django-fr
  • » Erreur étrange : __init__() takes exactly 2 arguments (3 given)

#1 16-04-2007 21:26:33

Nicolas Steinmetz
Membre
Inscription : 11-08-2010
Messages : 96

Erreur étrange : __init__() takes exactly 2 arguments (3 given)

Hello,

J'ai ceci qui est apparu et je vois pas d'où ça vient, ni comment le
résoudre, une idée ?


nicolas@nsteinmetz:~/django/mvmo$ python manage.py runserver
Validating models...
mvmo.cv: __init__() takes exactly 2 arguments (3 given)
1 error found.

le fichier models.py est ici (comme le reste de l'appli si besoin) :
http://chaudron.unelectronlibre.info/browser/django/mvmo/trunk/cv/models.py

Merci d'avance,
Nico

Hors ligne

#2 16-04-2007 21:40:27

Brice Carpentier
Membre
Inscription : 11-08-2010
Messages : 13

Re : Erreur étrange : __init__() takes exactly 2 arguments (3 given)

Le 16 avr. 07 à 22:26, Nicolas Steinmetz a écrit :

> Hello,
>
> J'ai ceci qui est apparu et je vois pas d'où ça vient, ni comment 
> le résoudre, une idée ?
>
>
> nicolas@nsteinmetz:~/django/mvmo$ python manage.py runserver
> Validating models...
> mvmo.cv: __init__() takes exactly 2 arguments (3 given)
> 1 error found.
>
probablement un champ qui reçoit trop de paramètres

--
Brice Carpentier
Développeur OpenSource

Hors ligne

#3 16-04-2007 21:51:38

Richard
Membre
Lieu : Paris
Inscription : 11-08-2010
Messages : 22
Site Web

Re : Erreur étrange : __init__() takes exactly 2 arguments (3 given)

arf, ca dit pas grand chose, mais ca dit au moins ca

a vu d'oeil, le code a l'air bon
j'ai essayé de faire un check out sans succes...

Niagara:~/django richard$ svn co
http://chaudron.unelectronlibre.info/browser/django/mvmo/trunk cv
svn: PROPFIND request failed on '/browser/django/mvmo/trunk'
svn: PROPFIND of '/browser/django/mvmo/trunk': 200 OK
(http://chaudron.unelectronlibre.info)

et d'autres variantes
mais je suis pas tres familier de svn

RM

On 4/16/07, Brice Carpentier <brice _AT_ daknet.org> wrote:
> Le 16 avr. 07 à 22:26, Nicolas Steinmetz a écrit :
>
> > Hello,
> >
> > J'ai ceci qui est apparu et je vois pas d'où ça vient, ni comment
> > le résoudre, une idée ?
> >
> >
> > nicolas@nsteinmetz:~/django/mvmo$ python manage.py runserver
> > Validating models...
> > mvmo.cv: __init__() takes exactly 2 arguments (3 given)
> > 1 error found.
> >
> probablement un champ qui reçoit trop de paramètres
>
> --
> Brice Carpentier
> Développeur OpenSource
>
> _______________________________________________
> django mailing list
> django _AT_ lists.afpy.org
> http://lists.afpy.org/cgi-bin/mailman/listinfo/django
>

Hors ligne

#4 17-04-2007 06:23:38

Nicolas Steinmetz
Membre
Inscription : 11-08-2010
Messages : 96

Re : Erreur étrange : __init__() takes exactly 2 arguments (3 given)

Le lundi 16 avril 2007, Richard a écrit :
> a vu d'oeil, le code a l'air bon
> j'ai essayé de faire un check out sans succes...
>
> Niagara:~/django richard$ svn co
> http://chaudron.unelectronlibre.info/browser/django/mvmo/trunk cv
> svn: PROPFIND request failed on '/browser/django/mvmo/trunk'
> svn: PROPFIND of '/browser/django/mvmo/trunk': 200 OK
> (http://chaudron.unelectronlibre.info)

c'est svn co http://chaudron.unelectronlibre.info/svn/django/mvmo/trunk ;-)

Hors ligne

#5 17-04-2007 08:19:24

Nicolas Steinmetz
Membre
Inscription : 11-08-2010
Messages : 96

Re : Erreur étrange : __init__() takes exactly 2 arguments (3 given)

Le 16/04/07, Brice Carpentier <brice _AT_ daknet.org> a écrit :
>
>
> plus exactement, tes ForeignKey (ainsi que tes M2M) sont fausses,
> voici un semblant de patch :
>   -   who = models.ForeignKey('Personne', User, unique=True)
>   +  who = models.ForeignKey(User, unique=True, verbose_name='Personne')
>
> Hope this helps,



ça aide grandement, merci ! :-)

Nico

Hors ligne

  • Accueil
  • » Django-fr
  • » Erreur étrange : __init__() takes exactly 2 arguments (3 given)

Pied de page des forums