urlpatterns = [
url(r'^xadmin/', xadmin.site.urls),
url(r'^login/$', LoginView.as_view(), name='login'),
url(r'^register/$', RegisterView.as_view(), name='register'),
url(r'^captcha/', include('captcha.urls')),
url(r'^active/(?P<active_code>.*)/$', ActiveUser.as_view(), name='active'),
url(r'^reset/(?P<active_code>.*)/$', ResetView.as_view(), name='reset'),
url(r'^$', TemplateView.as_view(template_name='index.html'), name='index'),
url(r'^forgetpwd/$', ForgetPwdView.as_view(), name='forgetpwd'),
url(r'^modify_pwd/$', ModifyPwdView.as_view(), name='modify'),
# 课程机构url配置
url(r'^org/', include('organiztions.urls', namespace='org')),
# 课程相关url配置
url(r'^course/', include('courses.urls', namespace='courses')),
# 配置上传文件的访问处理函数
url(r'^media/(?P<path>.*)/$', serve, {"document_root": MEDIA_ROOT}),
# 用户相关
url(r'^user/', include('users.urls', namespace='users')),
]