from django.conf.urls import url

from . import admin_views, views


app_name = 'core'

urlpatterns = [
	url(r'^$',views.ask, name='home'),
	url(r'^choose/$', views.choose, name='choose'),
	url(r'^home/$', views.home, name='login_user'),
	url(r'^profile/$', views.get_profile, name='user_profile_view'),
	url(r'^login/$', views.siginn, name='signin_view'),
	url(r'^logout/$',views.logout_user, name='logout_view'),
	url(r'^registration/$', views.register, name='register_view'),
	url(r'^regist', views.registration_with_mail, name='register_mail'),
	url(r'^error/$',views.error, name='error_view'),
	url(r'^validate/(?P<validation_str>[0-9 A-Z]+)/$', views.account_activation, name='validate_account'),
	url(r'^edit-profile/$', views.edit_profile, name='edit_profile'),
	url(r'^comment/',views.comment, name='submit_comment'),
	url(r'^like/(?P<id>[0-9]+)/$', views.like_question, name='like_question'),
	url(r'^dislike/(?P<id>[0-9]+)/$', views.dislike_question, name='dislike_question'),
	url(r'^about/$', views.about, name='about_view'),
	url(r'^student-response/(?P<student>[0-9]+)/$', views.get_student_response, name='response_sudent'),
	url(r'^question-stats/$', views.get_choices_result, name='stat_student'),
	url(r'^scoring/$',views.scoring, name='scoring_view'),
	url(r'^previous-question/(?P<current_id>[0-9]+)/$', views.get_previous_question, name='load_previous_question'),
	url(r'^dashboard/$', admin_views.dashboard, name='dashboard_admin_view'),
	url(r'^dashboard/questions/$', admin_views.questions, name='questions_admin_view'),
	url(r'^dashboard/questions/edit/$', admin_views.edit_question, name='edit_questions_admin_view'),
	url(r'^dashboard/questions/detail/$', admin_views.detail_question, name='question_detail_view'),
	url(r'^dashboard/questions/upload/$', admin_views.upload, name='questions_admin_upload_view'),
	url(r'^dashboard/choice/edit/$', admin_views.edit_choice, name='questions_admin_edit_choice_view'),
	url(r'^dashboard/categories/$', admin_views.categories, name='categories_admin_view'),
	url(r'^dashboard/categories/add/$', admin_views.add_categorie, name='categories_add_admin_view'),
	url(r'^dashboard/comments/$', admin_views.comments, name='comments_admin_view'),
	url(r'^dashboard/students/$', admin_views.students, name='students_admin_view'),
	url(r'^dashboard/profile/$', admin_views.dash_profile, name='profile_admin_view'),
	url(r'^dashboard/about/$', admin_views.edit_about, name='about_admin_view'),
	url(r'^dashboard/about/edit/(?P<sett>[a-z]+)/', admin_views.edit_setting, name='edit_setting'),
    url(r'^dashboard/student/export/(?P<id>[0-9]+)/$', admin_views.export_user, name='export_one_student'),
    url(r'^dashboard/student/export/all/$', admin_views.export_users, name='export_all_student')

]