Good After Django Users I still have problems with urls. Please somebody should take a carful look at this urls
urlpatterns = patterns('', url(r'^admin/', include(admin.site.urls)), #new urls url(r'^$', PostListView.as_view(), name='news-list'), url(r'^(?P<slug>[-_\w]+)/$', PostDetailView.as_view(), name='blogs-detail'), #events urls url(r'^$', EventListView.as_view(), name='events-list'), url(r'^(?P<slug>[-_\w]+)/$', EventDetailView.as_view(), name='events-detail'), ) when i type http://127.0.0.1:8000/ on the browser, this url url(r'^$', PostListView.as_view(), name='news-list'), will list all the news by their headlin in the form of a link. when i click on the url it output the content of the news , that is giving me the detail url of that news headline. this url url(r'^(?P<slug>[-_\w]+)/$', PostDetailView.as_view(), name='blogs-detail'), will take care of outputting the content Ok now i have created a second app called events with the following urls url(r'^$', EventListView.as_view(), name='events-list'), url(r'^(?P<slug>[-_\w]+)/$', EventDetailView.as_view(), name='events-detail'), so how do i open the url for event cos when i type http://127.0.0.1:8000/ it outputs only the url for news, that is the first url above. -- 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 django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. 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/d3e14af8-0ab3-4f3a-9b8a-89bb363adc2a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.