from django.conf.urls import patterns, include, url urlpatterns = patterns('', url(r'^$', 'website.views.home', name='home'), url(r'^category/(?P.+)/$', 'website.views.fetch_tutorials', name='fetch_tutorials'), url(r'^tutorial/(?P.+)/(?P.+)/$', 'website.views.fetch_posts', name='fetch_posts'), url(r'^post/(?P\d+)$', 'website.views.get_post', name='get_post'), url(r'^new-post/$', 'website.views.new_post', name='new_post'), )