from django.contrib import admin
from django.urls import path, include
from backend import settings
from django.conf.urls.static import static
from rest_framework.urlpatterns import format_suffix_patterns

urlpatterns = [
    path('', include('backend_app.urls')),
    path('admin/', admin.site.urls),
    # For authentication
    # path('backend/', include('oauth2.urls')),
]

if settings.DEBUG:
    urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

# urlpatterns = format_suffix_patterns(urlpatterns)

from django.contrib import admin
from django.urls import path, include
from backend import settings
from django.conf.urls.static import static
from rest_framework.urlpatterns import format_suffix_patterns

urlpatterns = [
    path('', include('backend_app.urls')),
    path('admin/', admin.site.urls),
    # For authentication
    # path('backend/', include('oauth2.urls')),
]

if settings.DEBUG:
    urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

# urlpatterns = format_suffix_patterns(urlpatterns)

# For authentication # path('backend/', include('oauth2.urls')), # urlpatterns = format_suffix_patterns(urlpatterns)