from django.conf.urls.defaults import patterns, include, url
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from models import Category
from views import Overview

urlpatterns = patterns('achievements.views',
    url(r'^$', 'Overview', name='overview'),
    url(r'^(?P<category_id>\d+)/$', 'CategoryView', name='category'),
    url(r'^trophy/$', 'TrophyView', name='trophy'),
    url(r'^trophy/(?P<category_id>\d+)/$', 'TrophyCategoryView', name='trophy_category'),
)

urlpatterns += staticfiles_urlpatterns()
from django.conf.urls.defaults import patterns, include, url
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from models import Category
from views import Overview

urlpatterns = patterns('achievements.views',
    url(r'^$', 'Overview', name='overview'),
    url(r'^(?P<category_id>\d+)/$', 'CategoryView', name='category'),
    url(r'^(?P<trophy_slot>\d+)/(?P<achievement_id>\d+)/$', 'TrophyView', name='trophy'),
)

urlpatterns += staticfiles_urlpatterns()
add url for TrophyView