AttributeError: el objeto ‘módulo’ no tiene atributo ‘urls’

Python 2.7 y Django 1.10 ERROR:

AttributeError: 'module' object has no attribute 'urls' 

main / urls.py

 from django.conf.urls import url, include from django.contrib import admin import article urlpatterns = [ url(r'^admin/', include(admin.site.urls)), url(r'^', include(article.urls)) ] 

articulo / urls.py

 from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.basic_one, name='basic_one') ] 

Estructura:

APP / main / urls.py

APP / articulo / urls.py

En main / urls.py

 from django.conf.urls import url, include from django.contrib import admin from article import urls urlpatterns = [ url(r'^admin/', include(admin.site.urls)), url(r'^', include(urls)) ] 

O

 from django.conf.urls import url, include from django.contrib import admin urlpatterns = [ url(r'^admin/', include(admin.site.urls)), url(r'^', include('article.urls')) ] 

Puedes aprender más de la documentación de Django

Es más fácil poner solo comillas en los artículos incluidos y no importar artículos. Al igual que:

 from django.conf.urls import url, include from django.contrib import admin urlpatterns = [ url(r'^admin/', include(admin.site.urls)), url(r'^', include('article.urls')) ]