from django.conf import settings
try:
  from django.conf.urls import include, url
except ImportError:
  from django.conf.urls.defaults import include, url

root_project = __import__(settings.ROOT_URLCONF)

try:
  urlpatterns = root_project.urls.urlpatterns
except AttributeError:
  try:
    urlpatterns = root_project.urlpatterns
  except AttributeError:
    urlpatterns = None

try:
  urlpatterns += (url(r'^periscope/', include('periscope.urls')),)
except TypeError:
  pass
