from django.conf.urls import url
from . import views

urlpatterns = [
    url(r'^$', views.index),
    url(r'^calendar/$', views.calendar),
    url(r'^calendar/(?P<d1>[0-9]{8})-(?P<d2>[0-9]{8})/$', views.calendar),
    url(r'^calendar/(?P<project>.+)/$', views.calendar),

    # ajax endpoints
    url(r'^toggle-task/$', views.toggle_task),
    url(r'^delete-task/$', views.delete_task),
    url(r'^save-new-task/$', views.save_new_task),
    url(r'^update-task/$', views.update_task),
]

@@ -125,32 +125,123 @@
 iews.calendar),%0A
+    url(r'%5Ecalendar/(?P%3Cproject%3E.+)/(?P%3Cd1%3E%5B0-9%5D%7B8%7D)-(?P%3Cd2%3E%5B0-9%5D%7B8%7D)/$', views.calendar),%0A
     url(r'%5Ecalen

enable project and date range calendar filter