from django.conf.urls import patterns, url

from views import *

urlpatterns = patterns('',
    url(r'^$', index, name='index'),
    url(r'^tutorial/start/$', tutorial_start, name='tutorial_start'),
    url(r'^tutorial/(?P<tutorial_id>\d+)/$', tutorial, name='tutorial'),
    url(r'^tutorial/(?P<tutorial_id>\d+)/finish/$', tutorial_finish, name='tutorial_finish'),
    url(r'^tutorial/(?P<tutorial_id>\d+)/(?P<step_num>\d+)/$', tutorial_step, name='tutorial_step'),
    url(r'^tutorial/(?P<tutorial_id>\d+)/(?P<step_num>\d+)/run/$', tutorial_step_run, name='tutorial_step_run'),
    url(r'^tutorial/(?P<tutorial_id>\d+)/(?P<step_num>\d+)/console/$', tutorial_step_console, name='tutorial_step_console'),
    url(r'^task/(?P<task_id>[^\/]+)/$', task, name='task')
)
