Ask coding questions

← Back to all posts
Why does django dosen't get this path
Flyingcrabs

Why does Django don't get this path

Answered by ch1ck3n [earned 5 cycles]
View Answer
Voters
Flyingcrabs
Comments
hotnewtop
ch1ck3n

change line 20 to
path('mainclass', include('main.urls')),

Flyingcrabs

Thx can you explain why? @ch1ck3n

Flyingcrabs

It is still getting the error looks like main is not a module @ch1ck3n

Flyingcrabs

Is it because there is not file named index in template @ch1ck3n

Flyingcrabs

Never mind i found out why
@ch1ck3n

ch1ck3n

@Flyingcrabs if it's just .urls django doesn't know what URLs to import

so I made it so it imports urls.py from /mainclass