[ ] acrecentar no inicio: from django.contrib import admin
from django.urls import path, include, re_path
from django.views.generic import TemplateView
from django.conf import settings
from django.conf.urls.static import static
[ ] adicionar o seguinte codigo : urlpatterns = [
path('admin/', admin.site.urls),
path('api-auth/', include('rest_framework.urls')),
path('api/', include('customers.urls')),
[ ] adicionar logo após:
if settings.DEBUG:
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
[ ] adicionar logo após: urlpatterns += [re_path(r'^.*', TemplateView.as_view(template_name='index.html'))]