Django makemigration polls error

73 views
Skip to first unread message

Ashish Kumar

unread,
Jul 24, 2018, 11:35:09 PM7/24/18
to Django users
I am trying to follow the latest Django tutorial at the documentation and I faced the following error when I enter python manage.py makemigrations polls
Traceback (most recent call last): File "manage.py", line 15, in <module> execute_from_command_line(sys.argv) File "C:\Users\asus\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\core\management\__init__.py", line 371, in execute_from_command_line utility.execute() File "C:\Users\asus\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\core\management\__init__.py", line 347, in execute django.setup() File "C:\Users\asus\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\__init__.py", line 24, in setup apps.populate(settings.INSTALLED_APPS) File "C:\Users\asus\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\apps\registry.py", line 89, in populate app_config = AppConfig.create(entry) File "C:\Users\asus\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\apps\config.py", line 123, in create import_module(entry) File "C:\Users\asus\AppData\Local\Programs\Python\Python36-32\lib\importlib\__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 994, in _gcd_import File "<frozen importlib._bootstrap>", line 971, in _find_and_load File "<frozen importlib._bootstrap>", line 950, in _find_and_load_unlocked ModuleNotFoundError: No module named 'polls.apps.PollsConfigwebapp'; 'polls.apps' is not a package

I'm new to Django. I had followed each steps properly and even re-checked.Experts please assist.Regards

theAloneOne

unread,
Jul 25, 2018, 7:24:09 AM7/25/18
to Django users
You may have missed a comma after 'polls.apps.PollsConfig' in your settings.py file in the INSTALLED_APPS list so check it again and you may not be using the same django-version as used in documentation so get the latest if you are following latest docs release.

Okware Aldo

unread,
Jul 25, 2018, 7:24:35 AM7/25/18
to django...@googlegroups.com
Did you include Polls app in INCLUDE_APPS section in settings.

--
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/2f948227-37d7-491d-b589-939abeab557e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

mottaz hejaze

unread,
Jul 25, 2018, 8:16:22 AM7/25/18
to django...@googlegroups.com
just add 'polls' to the end of your installed apps in your settings.py

Okware Aldo

unread,
Jul 25, 2018, 8:20:24 AM7/25/18
to django...@googlegroups.com
I think he should share screenshot of his setting.py file, but from what I can see -- if he is running django 1.10 and above apps should be 'polls' not  'polls.apps.PollsConfig'

On Wed, Jul 25, 2018 at 2:23 PM theAloneOne <vkshar...@gmail.com> wrote:
You may have missed a comma after 'polls.apps.PollsConfig' in your settings.py file in the INSTALLED_APPS list so check it again and you may not be using the same django-version as used in documentation so get the latest if you are following latest docs release.

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

Ashish Kumar

unread,
Jul 26, 2018, 10:53:16 PM7/26/18
to Django users
thanks man. that was the mistake i did.

Ashish Kumar

unread,
Jul 26, 2018, 10:54:09 PM7/26/18
to Django users
I'm using the latest version m8
Reply all
Reply to author
Forward
0 new messages