您最多选择25个主题
主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
12 行
447 B
12 行
447 B
from django.conf.urls.defaults import *
|
|
|
|
#/store/
|
|
urlpatterns = patterns('',
|
|
(r'^$', 'buyable.views.showItems'),
|
|
url(r'^show/(\d+)/$', 'buyable.views.showItem', name='buyable_show'),
|
|
url(r'^buy/(\d+)/$', 'buyable.views.buyItem', name='buyable_buy'),
|
|
url(r'^buy/(\d+)/(with/deposit|only/deposit)/$', 'buyable.views.buyItem', name='buyable_buy'),
|
|
(r'^bought/(\d+)/?$', 'buyable.views.boughtItem'),
|
|
(r'^history/?$', 'buyable.views.history'),
|
|
)
|