₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,326,906 members, 8,428,588 topics. Date: Wednesday, 17 June 2026 at 04:36 PM

Toggle theme

Babyprogrammer's Posts

Nairaland ForumBabyprogrammer's ProfileBabyprogrammer's Posts

1 (of 1 pages)

ProgrammingRe: 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
ProgrammingRe: 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

ProgrammingRe: 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
ProgrammingEncountering 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)