from django.http import HttpResponse
from django.urls import path, include, re_path
from django.conf import settings

index_file = (settings.BASE_DIR/"front" / "index.html").read_bytes()

urlpatterns = [
    path('api/', include('api.urls')),
    re_path(r'^.*', lambda x:HttpResponse(index_file)),
]

handler404 = 'api.views.page_not_found'

aa91a942dd93444cf55fb35e62ee59dfd0c54d06
<mask token>

<mask token>
index_file = (settings.BASE_DIR / 'front' / 'index.html').read_bytes()
urlpatterns = [path('api/', include('api.urls')), re_path('^.*', lambda x:
    HttpResponse(index_file))]
handler404 = 'api.views.page_not_found'

from django.http import HttpResponse
from django.urls import path, include, re_path
from django.conf import settings
index_file = (settings.BASE_DIR / 'front' / 'index.html').read_bytes()
urlpatterns = [path('api/', include('api.urls')), re_path('^.*', lambda x:
    HttpResponse(index_file))]
handler404 = 'api.views.page_not_found'

from django.http import HttpResponse
from django.urls import path, include, re_path
from django.conf import settings

index_file = (settings.BASE_DIR/"front" / "index.html").read_bytes()

urlpatterns = [
    path('api/', include('api.urls')),
    re_path(r'^.*', lambda x:HttpResponse(index_file)),
]

handler404 = 'api.views.page_not_found'
