from django.conf.urls import url
from django.contrib import admin
from django.urls import path, include

urlpatterns = [
    path('admin/', admin.site.urls),
    url('^search', include('haystack.urls')),  # 全文检索
    path('tinymce/', include('tinymce.urls')),  # 富文本编辑器
    path('user/', include(('user.urls', 'user'), namespace='user')),  # 用户模块
    path('order/', include(('order.urls', 'order'), namespace='order')),  # 订单模块
    path('cart/', include(('cart.urls', 'cart'), namespace='cart')),   # 购物车模块
    path('', include(('goods.urls', 'goods'), namespace='goods')),  # 商品模块
]
