On Sat, Jul 12, 2014 at 9:01 AM, ngangsia akumbo <ngang...@gmail.com> wrote: > i have a problem with my urls it keeps breaking > > here is my url > from django.conf.urls import patterns, include, url > from django.contrib import admin > admin.autodiscover() > #from blogs import views > > urlpatterns = patterns('blogs.views', > url(r'^admin/', include(admin.site.urls)), > ## news updates > > url(r'^blogs/', include('blogs.urls')),
This line says "Anything that starts with "blogs/", refer to the urlconf in "blogs.urls" > > url(r'^blogs/$', 'news_list'), > url(r'^blogs/(?P<blog_id>\d+)/$', 'news_detail'), This second url is > not executing which i cant understand why These urls start with "blogs/", and are never found because the first url listed has already taken any request starting with "blogs/". Either remove the include() line, or move those url()s below it to "blogs.urls". 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 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/CAFHbX1KrmP6cfqxs%3DBD_SPFW%2BOzenT0fWiEEWHbfTm0gTsxL-A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.