from django.conf.urls import include, url
from django.contrib import admin
from django.contrib.auth import views as auth_views


urlpatterns = [
    url(r'^login/', auth_views.login, name='login',
        kwargs={'redirect_authenticated_user': True}),
    url(r'^logout/', auth_views.logout, {'next_page': '/login'}, name='logout'),
    url(r'^admin/', admin.site.urls),
    url(r'^playbooks/', include('ansible.urls')),
]

from django.conf.urls import include, url
from django.contrib import admin
from django.contrib.auth import views as auth_views


urlpatterns = [
    url(r'^login/', auth_views.login, name='login',
        kwargs={'redirect_authenticated_user': True}),
    url(r'^logout/', auth_views.logout, {'next_page': '/login'}, name='logout'),
    url(r'^admin/', admin.site.urls),
    url(r'^playbooks/', include('ansible.urls', namespace='ansible')),
]

Add ansible namespace in root URLconf
Add ansible namespace in root URLconf

  from django.conf.urls import include, url
  from django.contrib import admin
  from django.contrib.auth import views as auth_views
  
  
  urlpatterns = [
      url(r'^login/', auth_views.login, name='login',
          kwargs={'redirect_authenticated_user': True}),
      url(r'^logout/', auth_views.logout, {'next_page': '/login'}, name='logout'),
      url(r'^admin/', admin.site.urls),
-     url(r'^playbooks/', include('ansible.urls')),
+     url(r'^playbooks/', include('ansible.urls', namespace='ansible')),
  ]
  
Add ansible namespace in root URLconf
## Code Before:
from django.conf.urls import include, url
from django.contrib import admin
from django.contrib.auth import views as auth_views


urlpatterns = [
    url(r'^login/', auth_views.login, name='login',
        kwargs={'redirect_authenticated_user': True}),
    url(r'^logout/', auth_views.logout, {'next_page': '/login'}, name='logout'),
    url(r'^admin/', admin.site.urls),
    url(r'^playbooks/', include('ansible.urls')),
]

## Instruction:
Add ansible namespace in root URLconf
## Code After:
from django.conf.urls import include, url
from django.contrib import admin
from django.contrib.auth import views as auth_views


urlpatterns = [
    url(r'^login/', auth_views.login, name='login',
        kwargs={'redirect_authenticated_user': True}),
    url(r'^logout/', auth_views.logout, {'next_page': '/login'}, name='logout'),
    url(r'^admin/', admin.site.urls),
    url(r'^playbooks/', include('ansible.urls', namespace='ansible')),
]
