我想构建我的网址模式,如果字符串以" id = CC1"结尾?那么它应该去bpo.views.cc1。我无法形成网址模式并需要帮助。以下是我的网址模式
urlpatterns = patterns('',
# Examples:
url(r'^$', 'bpo.views.cc1', name='cc1'),
url(r'^$', 'bpo.views.home', name='home'), # ^$ is for ending the string
# url(r'^blog/', include('blog.urls')),
#url(r'home2$', 'bpo.views.home', name='home'), for website ending with home2
url(r'^admin/', include(admin.site.urls)),
)