标签: django url
我在django的url中有额外的斜杠问题。我有url subdomain.domain.com/,但subdomain.domain.com////显示相同的页面。我需要输入subdomain.domain.com////的人重定向到subdomain.domain.com/或接收404.这就是我在urls.py中定义url的方式: urlpatterns = [ url(r'^$', views.home, name='home'),]
urlpatterns = [ url(r'^$', views.home, name='home'),]