No module named ‘.apps.PollsConfig’; ‘.polls.apps’ is not a package
This is a very common error when using Django with Microsoft visual studio. This issue is due to different Django version. My default MVS uses Django 1.8 and the definition for including urls.py file in settings.py is different.
For testing Django with MVS use only Django user documentation guide 1.8
https://docs.djangoproject.com/en/1.8/intro/tutorial01/
https://docs.djangoproject.com/en/1.8/intro/tutorial01/#activating-models
For Django
version 1.8 specify only the app name.
INSTALLED_APPS = (
‘django.contrib.admin’,
‘django.contrib.auth’,
‘django.contrib.contenttypes’,
‘django.contrib.sessions’,
‘django.contrib.messages’,
‘django.contrib.staticfiles’,
‘polls’,
)
version 1.9
INSTALLED_APPS = [
'polls.apps.PollsConfig',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
]
Reference Document
https://stackoverflow.com/questions/35484263/no-module-named-polls-apps-pollsconfigdjango-django-project-tutorial-2