from django.conf.urls.defaults import * from django.conf import settings from django.contrib import admin from os.path import join admin.autodiscover() urlpatterns = patterns('', # Example: # (r'^my-project/', include('my_project.foo.urls')), # Uncomment the admin/doc line below to enable admin documentation: # (r'^admin/doc/', include('django.contrib.admindocs.urls')), (r'^admin/', include(admin.site.urls)), # RapidSMS core URLs (r'^account/', include('rapidsms.urls.login_logout')), url(r'^$', 'rapidsms.views.dashboard', name='rapidsms-dashboard'), # RapidSMS contrib app URLs (r'^ajax/', include('rapidsms.contrib.ajax.urls')), (r'^export/', include('rapidsms.contrib.export.urls')), (r'^httptester/', include('rapidsms.contrib.httptester.urls')), (r'^locations/', include('rapidsms.contrib.locations.urls')), (r'^messagelog/', include('rapidsms.contrib.messagelog.urls')), (r'^messaging/', include('rapidsms.contrib.messaging.urls')), (r'^registration/', include('rapidsms.contrib.registration.urls')), (r'^scheduler/', include('rapidsms.contrib.scheduler.urls')), (r'^messages_json/', 'mumbai.views.messages_json'), ) if settings.LOCAL_DEVELOPMENT: # urlpatterns += patterns('', # (r'^static/(?P.*)$', 'django.views.static.serve', {'document_root': join(settings.PROJECT_PATH, "static")}), # )