from django.conf.urls.defaults import patterns, url
from dispatch.views import PackageListView, ClientListView, CourierListView, PackageCreateView, CourierCreateView,PackageUpdateView
from dispatch.views import ClientToggleView, CourierToggleView, CourierUpdateView, PackageDetailView, push_test, RunDispatcherView

urlpatterns = patterns('',
   
    url(r'^clients/(?P<pk>\d)/toggle/', ClientToggleView.as_view(), name="client_toggle"),
    url(r'^clients/', ClientListView.as_view(), name="client_list"),

    url(r'^packages/(?P<pk>\d)/edit/', PackageUpdateView.as_view(), name="package_edit"),
    url(r'^packages/(?P<pk>\d)/', PackageDetailView.as_view(), name="package_detail"),
    url(r'^packages/new/', PackageCreateView.as_view(), name="package_add"),
    url(r'^packages/', PackageListView.as_view(), name="package_list"),

    url(r'^couriers/new/', CourierCreateView.as_view(), name="courier_add"),
    url(r'^couriers/(?P<pk>\d)/toggle/', CourierToggleView.as_view(), name="courier_toggle"),
    url(r'^couriers/(?P<pk>\d)/edit/', CourierUpdateView.as_view(), name="courier_edit"),
    url(r'^couriers/', CourierListView.as_view(), name="courier_list"),

    url(r'^push_test/(?P<pk>\d)/(?P<message>\w+)', push_test, name="push_test"),
    url(r'^run/', RunDispatcherView.as_view(), name="run"),

)

fb3fbac32e32fc590b1b853b2ac467250eb9d234
<mask token>

<mask token>
urlpatterns = patterns('', url('^clients/(?P<pk>\\d)/toggle/',
    ClientToggleView.as_view(), name='client_toggle'), url('^clients/',
    ClientListView.as_view(), name='client_list'), url(
    '^packages/(?P<pk>\\d)/edit/', PackageUpdateView.as_view(), name=
    'package_edit'), url('^packages/(?P<pk>\\d)/', PackageDetailView.
    as_view(), name='package_detail'), url('^packages/new/',
    PackageCreateView.as_view(), name='package_add'), url('^packages/',
    PackageListView.as_view(), name='package_list'), url('^couriers/new/',
    CourierCreateView.as_view(), name='courier_add'), url(
    '^couriers/(?P<pk>\\d)/toggle/', CourierToggleView.as_view(), name=
    'courier_toggle'), url('^couriers/(?P<pk>\\d)/edit/', CourierUpdateView
    .as_view(), name='courier_edit'), url('^couriers/', CourierListView.
    as_view(), name='courier_list'), url(
    '^push_test/(?P<pk>\\d)/(?P<message>\\w+)', push_test, name='push_test'
    ), url('^run/', RunDispatcherView.as_view(), name='run'))

from django.conf.urls.defaults import patterns, url
from dispatch.views import PackageListView, ClientListView, CourierListView, PackageCreateView, CourierCreateView, PackageUpdateView
from dispatch.views import ClientToggleView, CourierToggleView, CourierUpdateView, PackageDetailView, push_test, RunDispatcherView
urlpatterns = patterns('', url('^clients/(?P<pk>\\d)/toggle/',
    ClientToggleView.as_view(), name='client_toggle'), url('^clients/',
    ClientListView.as_view(), name='client_list'), url(
    '^packages/(?P<pk>\\d)/edit/', PackageUpdateView.as_view(), name=
    'package_edit'), url('^packages/(?P<pk>\\d)/', PackageDetailView.
    as_view(), name='package_detail'), url('^packages/new/',
    PackageCreateView.as_view(), name='package_add'), url('^packages/',
    PackageListView.as_view(), name='package_list'), url('^couriers/new/',
    CourierCreateView.as_view(), name='courier_add'), url(
    '^couriers/(?P<pk>\\d)/toggle/', CourierToggleView.as_view(), name=
    'courier_toggle'), url('^couriers/(?P<pk>\\d)/edit/', CourierUpdateView
    .as_view(), name='courier_edit'), url('^couriers/', CourierListView.
    as_view(), name='courier_list'), url(
    '^push_test/(?P<pk>\\d)/(?P<message>\\w+)', push_test, name='push_test'
    ), url('^run/', RunDispatcherView.as_view(), name='run'))

from django.conf.urls.defaults import patterns, url
from dispatch.views import PackageListView, ClientListView, CourierListView, PackageCreateView, CourierCreateView,PackageUpdateView
from dispatch.views import ClientToggleView, CourierToggleView, CourierUpdateView, PackageDetailView, push_test, RunDispatcherView

urlpatterns = patterns('',
   
    url(r'^clients/(?P<pk>\d)/toggle/', ClientToggleView.as_view(), name="client_toggle"),
    url(r'^clients/', ClientListView.as_view(), name="client_list"),

    url(r'^packages/(?P<pk>\d)/edit/', PackageUpdateView.as_view(), name="package_edit"),
    url(r'^packages/(?P<pk>\d)/', PackageDetailView.as_view(), name="package_detail"),
    url(r'^packages/new/', PackageCreateView.as_view(), name="package_add"),
    url(r'^packages/', PackageListView.as_view(), name="package_list"),

    url(r'^couriers/new/', CourierCreateView.as_view(), name="courier_add"),
    url(r'^couriers/(?P<pk>\d)/toggle/', CourierToggleView.as_view(), name="courier_toggle"),
    url(r'^couriers/(?P<pk>\d)/edit/', CourierUpdateView.as_view(), name="courier_edit"),
    url(r'^couriers/', CourierListView.as_view(), name="courier_list"),

    url(r'^push_test/(?P<pk>\d)/(?P<message>\w+)', push_test, name="push_test"),
    url(r'^run/', RunDispatcherView.as_view(), name="run"),

)
