Aide pour erreur

9 views
Skip to first unread message

Dieu merci Dramani

unread,
Jun 10, 2021, 10:48:27 AM6/10/21
to Django users
Bonjour tous !
Je suis nouveau en django-python et j'apprends.

voici le fichier contenant le sms d'erreur. 
Erreur fichier.txt

Roger Gammans

unread,
Jun 10, 2021, 11:43:09 AM6/10/21
to django...@googlegroups.com
Hi

My french isn't great, and this list mostly uses English, so you'll probably get a better response if you can post in English even if you resort to google translate (like I have below ) but I think the intent of your email was clear.

Your error was "view stocksystema.views.home didn't return an HttpResponse object. It returned None instead." is pretty much to the point views - need to return a Response object which contains as the response HTML , or status etc. (ie. anything which goes to the browser) you either returned 'None', or possible fell out of the bottom of the function without a return value - which python interprets as None.

--- (en Francais via Google)

Mon français n'est pas génial, et cette liste utilise principalement l'anglais, donc vous obtiendrez probablement une meilleure réponse si vous pouvez poster en anglais même si vous recourez à google translate (comme ci-dessous) mais je pense que l'intention de votre e-mail C'était clair. 

Votre erreur était "view stocksystema.views.home n'a pas renvoyé d'objet HttpResponse. Il a renvoyé None à la place." est à peu près au point que les vues ont besoin de retourner un objet Response qui contient comme réponse HTML , ou status etc. (c'est-à-dire tout ce qui va au navigateur) vous avez soit retourné 'Aucun', soit peut-être tombé du bas du fonction sans valeur de retour - que python interprète comme None.

HTH, TTFN
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/15b87f54-afa1-4f01-9e6e-a496fe0fa81fn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages