U
    rd                     @   sD   d dl mZ d dlmZ d dl mZ d dlZd dlmZ dd ZdS )    )render)messages)redirectN)HttpResponsec                 C   s8   t d}| }|d }|dkr&g }t| dd|idS )Nz>https://thingsaccess.com/rfid/index.php/Api/getMachineOperatorresponse   z$machineOperator/machineOperator.html
data_steps)context)requestsgetjsonr   )requestr   	data_sendr    r   5/var/www/html/myproject/core/machineOperator/views.pymOperator_page	   s    
r   )	django.shortcutsr   django.contribr   r   r
   django.httpr   r   r   r   r   r   <module>   s
   