ModuleNotFoundError -- Please help :)

12 views
Skip to first unread message

Dante Costabile

unread,
Apr 1, 2021, 8:06:40 AM4/1/21
to Django users
Hiya Folks.  Relatively new to django and quite enjoying it.  However working on a geodjango project and I'm getting this error.

Screen Shot 2021-03-31 at 10.48.41 PM.png

Here is the file its referencing:Screen Shot 2021-03-31 at 10.49.30 PM.png

and my file structure:

Screen Shot 2021-03-31 at 10.50.11 PM.png

Thanks in advance

Ryan Nowakowski

unread,
Apr 1, 2021, 9:17:20 AM4/1/21
to django...@googlegroups.com
Since your models aren't in the migrations python package, I would use an absolute path in the import statement here rather than the relative path.

Ajay Rathore

unread,
Apr 1, 2021, 10:12:19 AM4/1/21
to django...@googlegroups.com
try this

from reporter.models import Counties

Regards
Ajay Rathore
Python Developer


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/B54524CA-E163-4718-8D5F-D956F2D4A69B%40fattuba.com.
Reply all
Reply to author
Forward
0 new messages