from django.conf.urls import patterns, include, url
from rango import views

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'tango_with_django_project.views.home', name='home'),
    # url(r'^tango_with_django_project/', include('tango_with_django_project.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # url(r'^admin/', include(admin.site.urls)),
    url(r'^$', views.index, name = 'index'),
    url(r'^about/', views.about, name = 'about'),
    url(r'^add_category/$', views.add_category, name = 'add_category'),
    url(r'^category/(?P<category_name_url>\w+)/add_page/$', views.add_page, name = 'add_page'),
    url(r'^category/(?P<category_name_url>\w+)/$', views.category, name = 'category'),
    url(r'^register/$', views.register, name = 'register'),
    url(r'^login/$', views.user_login, name = 'login'),
    url(r'^restricted/$', views.restricted, name = 'restricted'),
    url(r'^logout/$', views.user_logout, name = 'logout'),
    url(r'^profile/$', views.profile, name = 'profile'),
    url(r'^goto/$', views.track_url, name = 'track_url'),
    url(r'^like_category/$', views.like_category, name = 'like_category'),
    url(r'^suggest_category/$', views.suggest_category, name = 'suggest_category'),
    url(r'^auto_add_page/$', views.auto_add_page, name = "auto_add_page")
    # url(r'^search/$', views.search, name = 'search')
)
