You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#views.py
def enrolled_data(request, user, course_name):
if request.POST: # If this is true, the view received POST
selected_option = request.POST.get('my_options', None)
if selected_option:
enrolled_course = request.POST.get('enroll_course')
#urls.py
url(r'^str:course_name/str:user/enrolled_data/', views.enrolled_data, name='enrolled_data'),
#views.py
def enrolled_data(request, user, course_name):
if request.POST: # If this is true, the view received POST
selected_option = request.POST.get('my_options', None)
if selected_option:
enrolled_course = request.POST.get('enroll_course')
return render_to_response("mx-enrollment_new/enrolled_data.html", enrolled)
#html
Courses : % for enroll in course: ${ enroll } % endforThe text was updated successfully, but these errors were encountered: