Tuesday, January 19, 2016

regular expression confusion

hello,

i have a regular expression confusion error i cant work my app with together 2 and 3 line from my blog/urls if i work regardless that lines work fine
but i need together for my project.

my mysite/urls

url(r'^admin/', include(admin.site.urls)),
url(r'', include('blog.urls')),

my blog/urls

1  url(r'^$', views.index, name='index'),
2 url(r'^(?P<slug>[^\.]+)/$', views.view_post, name='view_post'),
3 url(r'^(?P<slug>[\w-]+)/$', views.view_category, name='view_category')



--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/11ac4eac-af33-4d5b-96e5-6b57826a06b6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment