#mozilla tutorial part 2

10 messages · Page 1 of 1 (latest)

stray kindle
#

Guys i have question . On mozilla tutorial i was following till the redirect and when i run the server it gives me error no module named catalog.urls

summer haven
#

Can you share your project layout? Do you have a directory called catalog in the project root (where the manage.py file is)?

summer haven
stray kindle
#

Yes i have that

summer haven
#

Did you create the catalog/urls.py file?

stray kindle
#

Nope since the tutorial didnt mention that

summer haven
#

As a final step, create a file inside your catalog folder called urls.py, and add the following text to define the (empty) imported urlpatterns. This is where we'll add our patterns as we build the application.

#

Ok, I think you just need to complete that step then 🙂

#

The tutorial sort of does things out of order 🙃

stray kindle
#

I see