from django.conf.urls import patterns, include, url from django.core.urlresolvers import reverse from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', url(r'^admin/', include(admin.site.urls)), url(r'^$', 'binder.views.home_index', name="index"), url(r'^server_list/$', 'binder.views.view_server_list', name="server_list"), url(r'^info/(?P[a-zA-Z0-9.-]+)/$', 'binder.views.view_server_zones', name="server_zone_list"), url(r'^info/(?P[a-zA-Z0-9.-]+)/(?P[a-zA-Z0-9.-]+)/$', 'binder.views.view_zone_records', name="zone_list"), url(r'^add_record/(?P[a-zA-Z0-9.-]+)/(?P[a-zA-Z0-9.-]+)/$', 'binder.views.view_add_record', name="add_record"), url(r'^add_record/result/$', 'binder.views.view_add_record_result', name="add_record_result"), url(r'^delete_record/$', 'binder.views.view_delete_record', name="delete_record"), url(r'^delete_record/result/$', 'binder.views.view_delete_result', name="delete_record_result"), url(r'^add_cname/(?P[a-zA-Z0-9.-]+)/(?P[a-zA-Z0-9.-]+)/(?P.*?)/$', 'binder.views.view_add_cname_record', name="add_cname"), url(r'^add_cname_record/result/$', 'binder.views.view_add_cname_result', name="add_cname_result"), )