from django.conf.urls.defaults import patterns, include, url from django.conf import settings from django.views.generic.simple import redirect_to from django.contrib import admin #to be used when using different templates for the tutors signupwizard! from apps.profile.views.login import TutorSignupWizard, TUTOR_SIGNUP_FORMS from apps.profile.forms import MultiPartSignupFormStep1, MultiPartSignupFormStep2, MultiPartSignupFormStep3, MultiPartSignupFormStep4, \ MultiPartSignupFormStep5, MultiPartSignupFormStep6 # Registration/Login views urlpatterns = patterns('apps.profile.views.login', #url(r"^(?i)account/signup/tutor/$", 'tutor_signup', name="tutor_signup"), url(r"^(?i)account/signup/tutorsubjects/$", 'tutor_signup1', name="tutor_signup1"), url(r'^account/signup/tutor/$', TutorSignupWizard.as_view(TUTOR_SIGNUP_FORMS), name="tutor_signup"), url(r'^account/signup/tutor2/$', TutorSignupWizard.as_view(TUTOR_SIGNUP_FORMS), name="tutor_signup2"), # url(r'^account/signup/tutor/$', TutorSignupWizard(TUTOR_SIGNUP_FORMS), name="tutor_signup"), # (r'^account/signup/tutor2/$', TutorSignupWizard.as_view([MultiPartSignupFormStep1, MultiPartSignupFormStep2, \ # MultiPartSignupFormStep3, MultiPartSignupFormStep4, \ # MultiPartSignupFormStep5, MultiPartSignupFormStep6])), url(r"^(?i)account/signup/student/$", 'student_signup', name="student_signup"), url(r"^(?i)account/signup/parent/$", 'parent_signup', name="parent_signup"), url(r"^(?i)account/signup/$", 'signup', name="signup"), url(r"^(?i)account/signin/$", 'signin', name="login"), url(r"^(?i)account/logout/$", 'logout_view', name="logout"), url(r"^(?i)account/successfull/signup/$", 'successfull_signup', name="successfull_signup"), url(r"^(?i)accounts/social/signup/$", 'social_signup', name="socialaccount_signup"), url(r'^(?i)accounts/genres/$', 'show_genres',name='show_genres'), url(r'^(?i)accounts/tutor5/$', 'show_genres',name='show_genres'), )
#home= TutorSignupWizard.as_view(step1, url_name='home') #wizard_other_steps = TutorSignupWizard.as_view(other_steps, url_name='wizard_other_steps') urlpatterns = patterns('apps.profile.views.login', #url(r'^$', wizard_step1, name="wizard_step1"), #url(r'^$', wizard_step1, name="home"), #url(r'^$', home, name="home"), #url(r'^account/signup/(?P<step>.+)/$', wizard_other_steps, name="wizard_other_steps"), ) # Main urlpatterns = patterns('apps.core.views.main', #url(r'^$', 'home', name='home'), url(r'^$', TutorSignupWizard.as_view(TUTOR_SIGNUP_FORMS), name="home"), #url(r'^account/tutorsignup/$', TutorSignupWizard.as_view(part12), name="home"), url(r'^(?i)search/$', 'search', name='search'), url(r'^(?i)reports/$', 'reports', name='reports'), url(r'^(?i)reports/students/$', 'reports_students', name='reports_students'), url(r'^(?i)reports/students/download/$', 'reports_students', {'xls':1},name='reports_students_download'), url(r'^(?i)reports/tutors/$', 'reports_tutors', name='reports_tutors'), url(r'^(?i)reports/tutors/download/$', 'reports_tutors', {'xls':1}, name='reports_tutors_download'), url(r'^(?i)reports/classes/$', 'reports_classes', name='reports_classes'), url(r'^(?i)reports/classes/download/$', 'reports_classes', {'xls':1}, name='reports_classes_download'), url(r'^(?i)reports/financial/$', 'reports_financial', name='reports_financial'), url(r'^(?i)reports/financial/download/$', 'reports_financial', {'xls':1}, name='reports_financial_download'), url(r'^(?i)monitoring/$', 'monitoring_classes', name='monitoring_classes'), url(r'^(?i)monitoring/(?P<class_id>\d+)/$', 'monitoring_class', name='monitoring_class'),