urls.py 1.29 KB
Newer Older
Administrator committed
1 2 3 4 5 6 7 8 9 10
"""."""

from django.conf.urls import  url
from . import views
from . import admin

urlpatterns = [
    url(r'^$', views.index),
    url(r'^shelf_view/([0-9]+)$', views.shelf_view),
    url(r'^shelf_inventory/([0-9]+)$', views.shelf_inventory),
11
    url(r'^inventory_process_state/([0-9]+)$', views.inventory_process_state),
12
    url(r'^all/?([a-z]*)$', views.all),
Administrator committed
13
    url(r'^get_shelves_extra_data$', views.get_shelves_extra_data),
14
    url(r'^change_products_shelfs$', views.change_products_shelfs),
Administrator committed
15 16 17
    url(r'^(?P<shelf_id>\d+)$', views.shelf_data),
    url(r'^(?P<shelf_id>\d+)/products$', views.products),
    url(r'^(?P<shelf_id>\d+)/add_product$', views.add_product),
18
    url(r'^(?P<shelf_id>\d+)/set_begin_inventory_datetime$', views.set_begin_inventory_datetime),
19
    url(r'^(?P<shelf_id>\d+)/delete_ongoing_inv_data$', views.delete_ongoing_inv_data),
Administrator committed
20 21 22 23 24 25 26 27 28 29
    url(r'^do_shelf_inventory$', views.do_shelf_inventory),
    url(r'^(?P<shelf_id>\d+)/last_inventory_report$', views.get_last_inventory_report),
    url(r'^shelf_inventory_FAQ', views.shelf_inventory_FAQ),
    url(r'^sales$', views.sales),
    url(r'^admin$', admin.index),
    url(r'^admin/create$', admin.create),
    url(r'^admin/update$', admin.update),
    url(r'^admin/delete$', admin.delete),
    url(r'^admin/add_products$', admin.add_products),
]