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

urlpatterns = patterns(
    '',
    url(r'^ajax/', include('ajax.urls', namespace='ajax')),
    url(r'^', include('pages.urls', namespace='pages')),
)

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

urlpatterns = patterns(
    '',
    url(r'^ajax/', include('ajax.urls', namespace='ajax')),
    url(r'', include('pages.urls', namespace='pages')),
)

Fix URL pattern in new versions of Django
Fix URL pattern in new versions of Django
