parameters: (request)
return_statement: return prof_manage(request, msg)
docstring: creates a demo course for user
docstring_summary: creates a demo course for user
docstring_tokens: creates a demo course for user
function: def create_demo_course(request):
      """ creates a demo course for user """
      user = request.user
      if not is_moderator(user):
          raise Http404("You are not allowed to view this page")
      demo_course = Course()
      success = demo_course.create_demo(user)
      if success:
          msg = "Created Demo course successfully"
      else:
          msg = "Demo course already created"
      return prof_manage(request, msg)
function_tokens: def create_demo_course ( request ) : user = request . user if not is_moderator ( user ) : raise Http404 ( "You are not allowed to view this page" ) demo_course = Course ( ) success = demo_course . create_demo ( user ) if success : msg = "Created Demo course successfully" else : msg = "Demo course already created" return prof_manage ( request , msg )