ImportError: no module named polls

60 views
Skip to first unread message

moon jo

unread,
Jan 25, 2016, 4:06:46 PM1/25/16
to Django users
Using django 1.6.10
I finished the polls tutorial and tried to create my own project.
I tried to runserver and it gives me the import error. But it's a blank project, haven't added anything in the settings.
When I do import settings form django.conf and print settings.INSTALLED_APPS, it prints this:

('django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.admin', 'polls')

Where is that 'polls' coming from? Every project I create, I get the same error, they're looking for the 'polls' app.

Rafael E. Ferrero

unread,
Jan 25, 2016, 4:21:01 PM1/25/16
to django...@googlegroups.com
if its a blank project you don't have a polls app yet,so... why you put your polls app there?


Rafael E. Ferrero

--
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/df91e3ff-aa9e-424a-9db2-f8d7091003a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

James Schneider

unread,
Jan 25, 2016, 5:11:55 PM1/25/16
to django...@googlegroups.com

Firstly, 1.6 is EoL, please upgrade your Django installation to a supported version (>=1.8). 

Django will not add this app to your settings.py on its own. Either you are not using the official Django distribution, or something else is going on. You are creating a new project with 'django-admin startproject <projectname>' right?

-James

Reply all
Reply to author
Forward
0 new messages