This is what is happening
i have created an event and added it to my admin.
I have added a content with title event and one with title news
url(r'^$', EventListView.as_view(), name='event'),
The url above will list the event with order_by date and title
url(r'^(?P<slug>[-_\w]+)/event/$', EventDetailView.as_view(),
name='Event-detail')
the second url is suppose to output the content of the event.
but when i click on the first listings of even it give me the error above
with an extension of event
so i tried adding event to url to see if it could change but still the
content is not outputed
On Friday, July 18, 2014 4:31:49 PM UTC+1, Tom Evans wrote:
>
> On Fri, Jul 18, 2014 at 2:54 PM, ngangsia akumbo <[email protected]
> <javascript:>> wrote:
> >
> > It is still breaking
> >
>
> You should explain precisely what is still breaking. "Still breaking"
> doesn't tells anyone who is helping you what is going wrong.
>
> In earlier emails, you are going to the URL "/event/", but in your
> urls.py you specify the url as having a slug before the "/event/".
>
> So, "/foo/event/" would match, and would pass slug='foo' to your view
> function.
>
> Your url has no slug and so doesn't match. The strings have to match
> exactly the regular expression.
>
> Cheers
>
> Tom
>
--
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/bf26fb31-94c8-4dff-8a2b-89afafbd4b6e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.