from django.conf.urls import patterns, include, url
from django.contrib import admin
from django.views.generic import TemplateView
from sdacademy import views
from django.conf.urls.static import static
#from views import contact, student_list, index, student_detail

urlpatterns = patterns('',
    url(r'^polls/', include('polls.urls', namespace="polls")),
    url(r'^quadratic/results/', include('quadratic.urls', namespace="quadratic")),
    url(r'^students/', include('students.urls', namespace="students")),

    url(r'^courses/', include('courses.urls', namespace="courses")),
    url(r'^$', include('courses.urls', namespace="courses")),
    url(r'^index/', include('courses.urls', namespace="courses")),
    url(r'^coaches/', include('coaches.urls', namespace="coaches")),

   # url(r'^feedback/', 'feedbacks.views.FeedbackView.as_view()', name="feedback"),  
     url(r'^feedback/', include('feedbacks.urls', namespace="feedback")),

#    url(r'^$', 'sdacademy.views.index',name='index'),
    url(r'^index/', 'sdacademy.views.index',name='index'),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^contact/', 'sdacademy.views.contact', name='contact'),
    url(r'^student_list/', 'sdacademy.views.student_list', name='student_list'),
    url(r'^student_detail/', 'sdacademy.views.student_detail', name='student_detail'),
    #url(r'^quadratic/results/', 'sdacademy.views.quadratic_results',name='results'),




)

