I don't understand why this doesn't work and smashes an
'*The current URL, lighter, didn't match any of these.'*
my models.py
class ShopList(models.Model):
name = models.CharField(max_length=100, null=True, blank=True)
description = models.CharField(max_length=100, null=True, blank=True)
slug = models.SlugField(unique=True, null=True, blank=True)
my views.py
class ProductView(DetailView):
model = models.ShopList
template_name = "product.html"
and finally urls.py
url(r'^(P?<slug>\w+)$', views.ProductView.as_view()),
Where is the mistake here????????????
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/426f02f1-1176-43cb-a8da-52a90687f168%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.