from django.conf.urls import patterns, url from rtwilio.views import TwilioBackendView, status_callback urlpatterns = patterns('', # nopep8 url(r"^backend/twilio/$", TwilioBackendView.as_view(backend_name='rtwilio-backend'), name='rtwilio-backend'), url(r'^backend/twilio/status-callback/$', status_callback, name='twilio-status-callback'), )
from django.conf.urls import include, url from django.contrib import admin from rapidsms.views import dashboard from rtwilio.views import TwilioBackendView urlpatterns = [ url(r'^admin/', include(admin.site.urls)), # RapidSMS core URLs url(r'^accounts/', include('rapidsms.urls.login_logout')), url(r'^$', dashboard, name='rapidsms-dashboard'), # RapidSMS contrib app URLs url(r'^messagelog/', include('rapidsms.contrib.messagelog.urls')), # Third party URLs url(r'^selectable/', include('selectable.urls')), ] if 'twilio-backend' in settings.INSTALLED_BACKENDS: urlpatterns += [ url( r'^backend/twilio/$', TwilioBackendView.as_view(backend_name='twilio-backend'), ), ] if settings.DEBUG: urlpatterns += [ url(r'^httptester/', include('rapidsms.contrib.httptester.urls')), ]