o
    d                     @   sp   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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)HttpResponse)JsonResponse)get_article_groupc                 C   s   | j dkr5t| j}t|d|dd}t| tjd|d}| }|d }t| t	dd	iS t
 }t| d
d|idS )NPOSTZ	articleIdfields)Zmain_part_idtitlez5https://thingsaccess.com/rfid/index.php/Api/addSkills)jsonresponsemessagezData received successfullyzOperations/opeartions_data.htmldata_articlegroup)context)methodr   loadsbodyintgetprintrequestspostr   r   r   )requestdatadata_artr   	data_send
data_stepsr    r   'D:\rfid_django\core\operations\views.pyoperations_page   s   
r   )django.shortcutsr   django.contribr   r   r   django.httpr   r   articlegroup.viewsr   r   r   r   r   r   r   <module>   s   