[Answer]-Django urlconf cant find directives to including urls

1👍

Your ROOT_URLCONF is coltrane.urls, which is a python package. Which means the __init__.py will be used. But there is no urlpatterns variable in your __init__.py. If you want to include all the sub-url files you could do something like the following:

import categories
import entries
import links
import tags

urlpatterns = categories.urlpatterns + entries.urlpatterns + links.urlpatterns + tags.urlpatterns

However, I would not necessarily suggest that. Also, coltrane.urls doesn’t look like a root url file to me. Maybe cms.urls should be the root. Then in cms.urls you can include coltrane.urls by adding this to your urlpatterns:

(r'', include('coltrane.urls')),

Leave a comment