"""
TODO - Add URL namespace
"""


from django.conf.urls.defaults import patterns, url


from admin2 import views

urlpatterns = patterns('',
    url(
        regex=r'^$',
        view=views.IndexView.as_view(),
        name="index"
    ),

"""
    url(
        regex=r'^(?P<app_label>[_\-\w]+)/(?P<model_name>[_\-\w]+)/$',
        view=views.ModelListView.as_view(),
        name="model_list"
    ),
    url(
        regex=r'^(?P<app_label>[_\-\w]+)/(?P<model_name>[_\-\w]+)/(?P<id>[\w]+)/$',
        view=views.ModelDetailView.as_view(),
        name="model_detail"
    ),
    url(
        regex=r'^(?P<app_label>[_\-\w]+)/(?P<model_name>[_\-\w]+)/(?P<id>[\w]+)/edit/$',
        view=views.ModelEditFormView.as_view(),
        name="model_detail_edit_form"
    ),
    url(
        regex=r'^(?P<app_label>[_\-\w]+)/(?P<model_name>[_\-\w]+)/add/$',
        view=views.ModelAddFormView.as_view(),
        name="model_detail_add_form"
    ),
    url(
        regex=r'^(?P<app_label>[_\-\w]+)/(?P<model_name>[_\-\w]+)/(?P<id>[\w]+)/delete/$',
        view=views.ModelDeleteView.as_view(),
        name="model_delete"
    )
"""
)
"""
TODO - Add URL namespace
"""


from django.conf.urls.defaults import patterns, url


from djadmin2 import views

urlpatterns = patterns('',
    url(
        regex=r'^$',
        view=views.IndexView.as_view(),
        name="index"
    ),

"""
    url(
        regex=r'^(?P<app_label>[_\-\w]+)/(?P<model_name>[_\-\w]+)/$',
        view=views.ModelListView.as_view(),
        name="model_list"
    ),
    url(
        regex=r'^(?P<app_label>[_\-\w]+)/(?P<model_name>[_\-\w]+)/(?P<id>[\w]+)/$',
        view=views.ModelDetailView.as_view(),
        name="model_detail"
    ),
    url(
        regex=r'^(?P<app_label>[_\-\w]+)/(?P<model_name>[_\-\w]+)/(?P<id>[\w]+)/edit/$',
        view=views.ModelEditFormView.as_view(),
        name="model_detail_edit_form"
    ),
    url(
        regex=r'^(?P<app_label>[_\-\w]+)/(?P<model_name>[_\-\w]+)/add/$',
        view=views.ModelAddFormView.as_view(),
        name="model_detail_add_form"
    ),
    url(
        regex=r'^(?P<app_label>[_\-\w]+)/(?P<model_name>[_\-\w]+)/(?P<id>[\w]+)/delete/$',
        view=views.ModelDeleteView.as_view(),
        name="model_delete"
    )
"""
)
Fix the admin2 -> djadmin2 package rename