Reputation: 603
My project was running; When cleaning .pyc, he stopped recognizing routes apps I created within it. The directory structure is as follows and In the main urls.py, I have the following:
Now I released the following error:
No module named dorna.rest.v1.urls
Upvotes: 0
Views: 204
Reputation: 5600
The urls.py
seem to be inside dorona folder, try to import rest directly:
(r'^v1/', include('rest.v1.urls')),
Upvotes: 1
Reputation: 13372
It seems you have added dorna
twice. You probably don't have to do that as can be seen from your '^admin/'
route.
Thus, include('dorna.rest.v1.urls')
instead of include('dorna.dorna.rest.v1.urls')
should work.
Upvotes: 1