1 from django
.conf
.urls
.defaults
import *
4 # Uncomment the next two lines to enable the admin:
5 from django
.contrib
import admin
8 urlpatterns
= patterns('',
10 # (r'^ochimeru/', include('ochimeru.foo.urls')),
11 (r
'^$', 'ochimeru.cards.views.home'),
12 (r
'^login$', 'ochimeru.cards.views.login_user'),
13 (r
'^level/(?P<level>\d+)/$', 'ochimeru.cards.views.level'),
14 (r
'^level/(?P<level>\d+)/(?P<card_id>\d+)$', 'ochimeru.cards.views.card'),
15 (r
'^level/(?P<level>\d+)/(?P<card_id>\d+)/show$', 'ochimeru.cards.views.answer'),
16 (r
'^level/(?P<level>\d+)/(?P<card_id>\d+)/check$', 'ochimeru.cards.views.check'),
18 # Uncomment the admin/doc line below and add 'django.contrib.admindocs'
19 # to INSTALLED_APPS to enable admin documentation:
20 # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
22 # Uncomment the next line to enable the admin:
23 (r
'^admin/', include(admin
.site
.urls
)),
24 (r
'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': os
.path
.abspath('%s/static/' % os
.path
.dirname(__file__
))}),
27 print os
.path
.abspath('%s/static/' % os
.path
.dirname(__file__
))