from django.conf.urls import patterns, include, url

urlpatterns = patterns(
    '',
    url(r'^text-analysis/v1/', include('main.urls')),
)

from django.conf.urls import include, url

urlpatterns = [
    url(r'^text-analysis/v1/', include('main.urls')),
]

Update urls.py