₦airaland Forum

Welcome, Guest: Register • Login • With Google • Trending • Recent • New

Stats: 3,344,286 members, 8,511,067 topics. Date: Saturday, 31 October 2026 at 05:43 PM

Toggle theme

Babyprogrammer's Posts

Nairaland Forum › Babyprogrammer's Profile › Babyprogrammer's Posts

1 (of 1 pages)

Programming › Re: Encountering This Error In Django: TypeError: 'module' Object Is Not Iterable by Babyprogrammer(op): 7:49am On Apr 16, 2022
bosman50:
In your views you didnt implement challenge. you implemented just index.the path() espects a routh as a first argument.
So django saw that as a module(challange is actually defined as a module.) and as such throws error.
Try and define a proper view for challenge and also include a pattern for index
Boss, please come down to my level sir cry
Programming › Re: Encountering This Error In Django: TypeError: 'module' Object Is Not Iterable by Babyprogrammer(op): 7:47am On Apr 16, 2022
bularuz:
You didn't put anything in challenges url.py file
I did sir

Programming › Re: Encountering This Error In Django: TypeError: 'module' Object Is Not Iterable by Babyprogrammer(op): 7:40am On Apr 16, 2022
GeneralDae:
Most likely a problem from your Views.Py file. Cross check all files again with the tutorial you are following. If it still doesn't work, then start from a couple of steps back or even start all over again (if you haven't gone too far previously).
Thanks very much sir.

I will try that sir
Programming › Encountering This Error In Django: TypeError: 'module' Object Is Not Iterable by Babyprogrammer(op):
I am a newbie in the IT world and so excited to be in.
I have undergone Python training and took up the challenge to learn Django on Udemy.
Following the steps given keenly and perfectly as much as i could, I encountered the error in the screenshot below.

I will be so happy if any of my seniors and any of the gurus in the house to tell me or show me how to rectify the cause of the error.

1 (of 1 pages)