from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import path, include, re_path
from django.views.generic import TemplateView

urlpatterns = [
    path('api-auth/', include('rest_framework.urls')),
    path('rest-auth/', include('rest_auth.urls')),
    path('rest-auth/registration/', include('rest_auth.registration.urls')),
    path('admin/', admin.site.urls),
    path('api/', include('core.api.urls')),
]

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


if not settings.DEBUG:
    urlpatterns += [re_path(r'^.*',
                            TemplateView.as_view(template_name='index.html'))]

[((11, 4, 11, 35), 'django.urls.path', 'path', ({(11, 9, 11, 17): '"""admin/"""', (11, 19, 11, 34): 'admin.site.urls'}, {}), "('admin/', admin.site.urls)", False, 'from django.urls import path, include, re_path\n'), ((16, 19, 17, 60), 'django.conf.urls.static.static', 'static', (), '', False, 'from django.conf.urls.static import static\n'), ((8, 22, 8, 52), 'django.urls.include', 'include', ({(8, 30, 8, 51): '"""rest_framework.urls"""'}, {}), "('rest_framework.urls')", False, 'from django.urls import path, include, re_path\n'), ((9, 23, 9, 48), 'django.urls.include', 'include', ({(9, 31, 9, 47): '"""rest_auth.urls"""'}, {}), "('rest_auth.urls')", False, 'from django.urls import path, include, re_path\n'), ((10, 36, 10, 74), 'django.urls.include', 'include', ({(10, 44, 10, 73): '"""rest_auth.registration.urls"""'}, {}), "('rest_auth.registration.urls')", False, 'from django.urls import path, include, re_path\n'), ((12, 17, 12, 41), 'django.urls.include', 'include', ({(12, 25, 12, 40): '"""core.api.urls"""'}, {}), "('core.api.urls')", False, 'from django.urls import path, include, re_path\n'), ((22, 28, 22, 76), 'django.views.generic.TemplateView.as_view', 'TemplateView.as_view', (), '', False, 'from django.views.generic import TemplateView\n')]