spejstore-new/storage/urls.py

22 lines
652 B
Python
Raw Normal View History

from django.conf.urls import include, url
2018-04-27 20:53:38 +00:00
from storage.views import (
2023-07-11 13:34:35 +00:00
index,
search,
item_display,
label_lookup,
apitoken,
ItemSelectView,
PropSelectView,
2018-04-27 20:53:38 +00:00
)
urlpatterns = [
2023-07-11 13:34:35 +00:00
url(r"^$", index),
url(r"^search$", search),
url(r"^apitoken$", apitoken),
url(r"^item/(?P<pk>.*)$", item_display, name="item-display"),
url(r"^autocomplete.json$", ItemSelectView.as_view(), name="item-complete"),
url(r"^autocomplete_prop.json$", PropSelectView.as_view(), name="prop-complete"),
url(r"^(?P<pk>[^/]*)$", label_lookup, name="label-lookup"),
url("", include("social_django.urls", namespace="social")),
]