I solved the problem

the error was coming from the views.py
the list views did not define the model 

thanks for the support

On Friday, July 18, 2014 4:40:08 PM UTC+1, ngangsia akumbo wrote:
>
> 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]> 
>> 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/3effc629-5a6f-4e35-90df-fe9b1e2d5508%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to