21 lines
899 B
Python
21 lines
899 B
Python
from django.conf.urls import url
|
|
from django.urls import path
|
|
|
|
from apps.main import views_main
|
|
from apps.main.services.accident_stops.views import get_accident_stops
|
|
from apps.main.services.scales_control.views import get_scales_data, get_positions
|
|
from apps.main.services.workstatus.views import get_current_status
|
|
from apps.main.services.worktime.views import factory_work_time
|
|
|
|
urlpatterns = [
|
|
url(r'^$', views_main.mainindex, name='mainindex'),
|
|
url(r'^scada/$', views_main.scada_index, name='scada_index'),
|
|
url(r'scada/ajax/$', views_main.get_ajax, name='get_ajax'),
|
|
|
|
path('accident_stops/', get_accident_stops, name='accident_stops'),
|
|
path('worktime/', factory_work_time, name='factory_time'),
|
|
path('status/', get_current_status, name='current_status'),
|
|
path('scales/', get_scales_data, name='scales'),
|
|
path('positions/', get_positions, name='get_positions')
|
|
]
|