I want to frame my url pattern such that if the string ends with "id=CC1" then it should go bpo.views.cc1. I am not able to form the url pattern and need help. Below are my url patterns
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)),
)