ModuleNotFoundError: No module named 'sample,'

23 views
Skip to first unread message

lakshm...@gmail.com

unread,
Mar 7, 2019, 4:44:17 AM3/7/19
to Django users
Hi Team

My project name is Sample
While I am trying to connect database with models.py 
I am finding these type of errors
ModuleNotFoundError: No module named 'sample,'
Can anybody help me.
Capture111.PNG
Capture22.PNG

Robin Riis

unread,
Mar 7, 2019, 5:00:31 AM3/7/19
to django...@googlegroups.com
from .models import Sample

--
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 post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/94eba992-1553-40a5-8a58-4f9ad85bbd5c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Alex Kimeu

unread,
Mar 7, 2019, 5:03:06 AM3/7/19
to django...@googlegroups.com
Do you have a model named Sample in your models.py file of your app??

赖信桃

unread,
Mar 7, 2019, 8:39:03 AM3/7/19
to django...@googlegroups.com
Did you add `sample` to INSTALLED_APPS?

<lakshm...@gmail.com> 于2019年3月7日周四 下午5:44写道:
--

lakshm...@gmail.com

unread,
Mar 7, 2019, 11:03:05 PM3/7/19
to Django users
yes I added

abel otugeme

unread,
Mar 8, 2019, 5:14:55 AM3/8/19
to django...@googlegroups.com

You must have written code that doesn't work.  Check if you imported any function e.g models that you didn't use.

--
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+unsubscribe@googlegroups.com.

Ezequiel Bertti

unread,
Mar 8, 2019, 1:21:34 PM3/8/19
to django...@googlegroups.com
Check your INSTALED_APPS on settings.py

I think you have a simple typo with: "sample,",

On Fri, Mar 8, 2019 at 7:14 AM abel otugeme <aotu...@gmail.com> wrote:

You must have written code that doesn't work.  Check if you imported any function e.g models that you didn't use.

On Mar 7, 2019 10:44 AM, <lakshm...@gmail.com> wrote:
Hi Team

My project name is Sample
While I am trying to connect database with models.py 
I am finding these type of errors
ModuleNotFoundError: No module named 'sample,'
Can anybody help me.

--
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.

--
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 post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

For more options, visit https://groups.google.com/d/optout.


--
Reply all
Reply to author
Forward
0 new messages