OSError: [WinError 123] Неверный синтаксис имени файла, имени каталога или метки тома: '' urls.py:
from django.contrib import admin
from django.urls import path
from MyTunes import views
urlpatterns = [
path('admin/', admin.site.urls),
path('MyTunes/',views.mytune)
]
views.py:
from django.shortcuts import render
from django.http import HttpResponse
def mytune(request):
return HttpResponse(request, 'Templates/Index.html')
In settings.py ,
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
STATIC_DIR = os.path.join(BASE_DIR, 'static files')
TEMPLATE_DIR = os.path.join(BASE_DIR, 'html dir')
STATIC_URL = '/static/'
STATICFILES_DIRS = [
STATIC_DIR,
]