Frederic
11 years ago
5 changed files with 26 additions and 2 deletions
@ -0,0 +1,7 @@
@@ -0,0 +1,7 @@
|
||||
|
||||
|
||||
Name: <i>{{ product.name }}</i><br/> |
||||
Preis: <i>{{ product.price }}</i><br/> |
||||
Kategorie: <i>{{ product.category }}</i><br/> |
||||
|
||||
|
@ -0,0 +1,8 @@
@@ -0,0 +1,8 @@
|
||||
from django.conf.urls import patterns, url |
||||
|
||||
from cash import views |
||||
|
||||
urlpatterns = patterns('', |
||||
url(r'^product/(?P<pk>\d+)/$', views.ProductView.as_view(), name='product'), |
||||
) |
||||
|
@ -1 +1,7 @@
@@ -1 +1,7 @@
|
||||
# Create your views here. |
||||
from django.views import generic |
||||
from cash.models import * |
||||
|
||||
class ProductView(generic.DetailView): |
||||
model = Product |
||||
|
||||
|
||||
|
Loading…
Reference in new issue