parent
9450f3326b
commit
f4ceecf205
@ -0,0 +1,15 @@
|
|||||||
|
{% extends "base.html" %}
|
||||||
|
|
||||||
|
{% block "content" %}
|
||||||
|
{% if not error %}
|
||||||
|
{% if item1 %}
|
||||||
|
You got the item {{ item1 }}
|
||||||
|
{% endif %}
|
||||||
|
{% if item2 %}
|
||||||
|
You got the second item {{ item2 }}
|
||||||
|
{% endif %}
|
||||||
|
{% else %}
|
||||||
|
{{ error }}
|
||||||
|
Junge junge junge
|
||||||
|
{% endif %}
|
||||||
|
{% endblock %}
|
@ -1,8 +1,9 @@
|
|||||||
from django.conf.urls.defaults import *
|
from django.conf.urls.defaults import *
|
||||||
|
|
||||||
|
#/store/
|
||||||
urlpatterns = patterns('',
|
urlpatterns = patterns('',
|
||||||
(r'^$', 'buyable.views.showItems'),
|
(r'^$', 'buyable.views.showItems'),
|
||||||
(r'^show/(\d+)/$', 'buyable.views.showItem'),
|
(r'^show/(\d+)/$', 'buyable.views.showItem'),
|
||||||
(r'^buy/(\d+)/$', 'buyable.views.buyItem'),
|
(r'^buy/(\d+)/(|with/deposit|only/deposit)/?$', 'buyable.views.buyItem'),
|
||||||
|
(r'^bought/(\d+)/(\d+)?/?$', 'buyable.views.boughtItem'),
|
||||||
)
|
)
|
Binary file not shown.
Loading…
Reference in new issue