import re
from django.conf.urls import url, include
from csdn import views
from django.conf import settings  # 引入settings

urlpatterns = [
    url(r'^poll/$', views.poll),
    url(r'^(?P<username>.*)/(?P<condition>tag|date|category)/(?P<para>.*)', views.homeSite),
    url(r'^(?P<username>.*)/articles/(?P<article_id>\d+)', views.articleDetail),
    url(r'^(?P<username>.*)', views.homeSite, name="home"),

]
