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 developers  (Contributions to Django itself)" 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-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/27044557-8c48-4fed-ab18-58e580ddf9fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to