from django.conf.urls import patterns, include, url
from django.views.generic.simple import direct_to_template
from django.contrib.staticfiles.urls import staticfiles_urlpatterns

from django.contrib import admin
from django.contrib.auth.views import login, logout

from cellcounter.main.views import new_count, view_count, edit_count

admin.autodiscover()

urlpatterns = patterns('',

    url(r'^$', direct_to_template, {'template': 'main/index.html'},
            name="index"),

    url(r'^count/$', new_count, name="count_home"),
    url(r'^count/new/$', new_count, name="new_count"),
    url(r'^count/(?P<count_id>\d+)/$', view_count, name="view_count"),
    url(r'^count/(?P<count_id>\d+)/edit/$', edit_count, name="edit_count"),

    url(r'^login/$', login, {'template_name': 'main/login.html'}, name='login'),
    url(r'^logout/$', logout, {'next_page': '/'}, name='logout'),
    
    url(r'^admin/', include(admin.site.urls)),
)

urlpatterns += staticfiles_urlpatterns()

@@ -327,16 +327,34 @@
 it_count
+, ListMyCountsView
 %0A%0Aadmin.
@@ -744,24 +744,74 @@
 t_count%22),%0A%0A
+    url(r'%5Euser/$', ListMyCountsView.as_view()),%0A%0A
     url(r'%5El

Add URL to enable user list view