from django.conf.urls import include, url
from django.contrib import admin
from example_app.views import ChatterBotAppView, ChatterBotApiView


urlpatterns = [
    url(r'^$', ChatterBotAppView.as_view(), name='main'),
    url(r'^admin/', include(admin.site.urls), name='admin'),
    url(r'^api/chatterbot/', ChatterBotApiView.as_view(), name='chatterbot'),
]

from django.conf.urls import url
from django.contrib import admin
from example_app.views import ChatterBotAppView, ChatterBotApiView


urlpatterns = [
    url(r'^$', ChatterBotAppView.as_view(), name='main'),
    url(r'^admin/', admin.site.urls, name='admin'),
    url(r'^api/chatterbot/', ChatterBotApiView.as_view(), name='chatterbot'),
]

Remove url inlude for Django 2.0
Remove url inlude for Django 2.0

- from django.conf.urls import include, url
+ from django.conf.urls import url
  from django.contrib import admin
  from example_app.views import ChatterBotAppView, ChatterBotApiView
  
  
  urlpatterns = [
      url(r'^$', ChatterBotAppView.as_view(), name='main'),
-     url(r'^admin/', include(admin.site.urls), name='admin'),
+     url(r'^admin/', admin.site.urls, name='admin'),
      url(r'^api/chatterbot/', ChatterBotApiView.as_view(), name='chatterbot'),
  ]
  
Remove url inlude for Django 2.0
## Code Before:
from django.conf.urls import include, url
from django.contrib import admin
from example_app.views import ChatterBotAppView, ChatterBotApiView


urlpatterns = [
    url(r'^$', ChatterBotAppView.as_view(), name='main'),
    url(r'^admin/', include(admin.site.urls), name='admin'),
    url(r'^api/chatterbot/', ChatterBotApiView.as_view(), name='chatterbot'),
]

## Instruction:
Remove url inlude for Django 2.0
## Code After:
from django.conf.urls import url
from django.contrib import admin
from example_app.views import ChatterBotAppView, ChatterBotApiView


urlpatterns = [
    url(r'^$', ChatterBotAppView.as_view(), name='main'),
    url(r'^admin/', admin.site.urls, name='admin'),
    url(r'^api/chatterbot/', ChatterBotApiView.as_view(), name='chatterbot'),
]
