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

from account.api import urls
from django.conf import settings
from django.conf.urls.static import static

from rest_framework.documentation import include_docs_urls

urlpatterns = [
    path(r'', include_docs_urls(title='Elkomerc API docs')),
    path('admin/', admin.site.urls),
    path(r'admin/statuscheck/', include('celerybeat_status.urls')),
    path(r'api/', include(('account.api.urls', 'account'), namespace='account')),
    path(r'api/product-category/', include(('product_category.api.urls', 'category'), namespace='category')),
    path(r'api/product/', include(('product.api.urls', 'product'), namespace='product')),
    path(r'api/site-configurations/', include(('site_configurations.api.urls', 'site_configurations'), namespace='site_configurations')),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)