Jdr-projet
Vous souhaitez réagir à ce message ? Créez un compte en quelques clics ou connectez-vous pour continuer.
Le Deal du moment : -25%
PC Portable Gamer 16,1” HP Victus 16 – 16 ...
Voir le deal
749.99 €

invocation loup manquante

Aller en bas

invocation loup manquante Empty invocation loup manquante

Message par Xyxy Mer 13 Juil - 5:24

Salut MJ, un petit mot ici car pas discord sur ce pc
lorsque que j'ai lancé une invocation de loups, seuls 2 sur 3 loup on été invoqués
le 3e ayant créé une jolie stack trace avec une contrainte d'intégrité violée :
Environment:


Request Method: POST
Request URL: https://www.jdr-projet.com/personnage/fiche_perso/1782/

Django Version: 3.2.11
Python Version: 3.6.15
Installed Applications:
['accounts.apps.AccountsConfig',
'personnage.apps.PersonnageConfig',
'objet.apps.ObjetConfig',
'lieu.apps.LieuConfig',
'etat.apps.EtatConfig',
'event.apps.EventConfig',
'competence.apps.CompetenceConfig',
'monstre.apps.MonstreConfig',
'quete.apps.QueteConfig',
'metier.apps.MetierConfig',
'royaume.apps.RoyaumeConfig',
'django_crontab',
'multiselectfield',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'debug_toolbar']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'debug_toolbar.middleware.DebugToolbarMiddleware']



Traceback (most recent call last):
File "/home/jdrproje/Jdr_Zero/monstre/models.py", line 153, in creation_monstre_check
monstre = Personnage.objects.get(nom = nom_monstre)
File "/home/jdrproje/virtualenv/Jdr_Zero/3.6/lib/python3.6/site-packages/django/db/models/manager.py", line 85, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/home/jdrproje/virtualenv/Jdr_Zero/3.6/lib/python3.6/site-packages/django/db/models/query.py", line 437, in get
self.model._meta.object_name

During handling of the above exception (Personnage matching query does not exist.), another exception occurred:
File "/home/jdrproje/virtualenv/Jdr_Zero/3.6/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
return self.cursor.execute(sql, params)

The above exception (null value in column "objet_de_base_id" violates not-null constraint
DETAIL: Failing row contains (22253, null, null, null, f, 100, null, null, 7028, null, null, null, null, 1, 0, 0, null, null, 0, null, null, null).
) was the direct cause of the following exception:
File "/home/jdrproje/virtualenv/Jdr_Zero/3.6/lib/python3.6/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/home/jdrproje/virtualenv/Jdr_Zero/3.6/lib/python3.6/site-packages/django/core/handlers/base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/jdrproje/Jdr_Zero/personnage/views.py", line 1319, in fiche_perso
loup_base.creation_monstre_check()
File "/home/jdrproje/Jdr_Zero/monstre/models.py", line 289, in creation_monstre_check
objet_2 = Objet_Associe_A_PJ.objects.create(objet_de_base= self.objet_2,proprietaire=monstre)
File "/home/jdrproje/virtualenv/Jdr_Zero/3.6/lib/python3.6/site-packages/django/db/models/manager.py", line 85, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/home/jdrproje/virtualenv/Jdr_Zero/3.6/lib/python3.6/site-packages/django/db/models/query.py", line 453, in create
obj.save(force_insert=True, using=self.db)
File "/home/jdrproje/virtualenv/Jdr_Zero/3.6/lib/python3.6/site-packages/django/db/models/base.py", line 740, in save
force_update=force_update, update_fields=update_fields)
File "/home/jdrproje/virtualenv/Jdr_Zero/3.6/lib/python3.6/site-packages/django/db/models/base.py", line 778, in save_base
force_update, using, update_fields,
File "/home/jdrproje/virtualenv/Jdr_Zero/3.6/lib/python3.6/site-packages/django/db/models/base.py", line 881, in _save_table
results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw)
File "/home/jdrproje/virtualenv/Jdr_Zero/3.6/lib/python3.6/site-packages/django/db/models/base.py", line 921, in _do_insert
using=using, raw=raw,
File "/home/jdrproje/virtualenv/Jdr_Zero/3.6/lib/python3.6/site-packages/django/db/models/manager.py", line 85, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/home/jdrproje/virtualenv/Jdr_Zero/3.6/lib/python3.6/site-packages/django/db/models/query.py", line 1270, in _insert
return query.get_compiler(using=using).execute_sql(returning_fields)
File "/home/jdrproje/virtualenv/Jdr_Zero/3.6/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1416, in execute_sql
cursor.execute(sql, params)
File "/home/jdrproje/virtualenv/Jdr_Zero/3.6/lib/python3.6/site-packages/django/db/backends/utils.py", line 98, in execute
return super().execute(sql, params)
File "/home/jdrproje/virtualenv/Jdr_Zero/3.6/lib/python3.6/site-packages/django/db/backends/utils.py", line 66, in execute
return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
File "/home/jdrproje/virtualenv/Jdr_Zero/3.6/lib/python3.6/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
return executor(sql, params, many, context)
File "/home/jdrproje/virtualenv/Jdr_Zero/3.6/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
return self.cursor.execute(sql, params)
File "/home/jdrproje/virtualenv/Jdr_Zero/3.6/lib/python3.6/site-packages/django/db/utils.py", line 90, in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
File "/home/jdrproje/virtualenv/Jdr_Zero/3.6/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
return self.cursor.execute(sql, params)

Exception Type: IntegrityError at /personnage/fiche_perso/1782/
Exception Value: null value in column "objet_de_base_id" violates not-null constraint
DETAIL: Failing row contains (22253, null, null, null, f, 100, null, null, 7028, null, null, null, null, 1, 0, 0, null, null, 0, null, null, null).


Xyxy

Messages : 28
Date d'inscription : 29/04/2021

Revenir en haut Aller en bas

Revenir en haut

- Sujets similaires

 
Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum