Here is a photo of my directories. I am currently trying to utilize sudokuStyle.css in sudoku_board.html, but for some reason it does not appear to be linking properly in my HTML file. Below is the code snippet from my head section:
{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Sudoku Solver</title>
<link rel="stylesheet" type="text/css" href="{% static 'css/sudokuStyle.css' %}">
</head>
What could possibly be causing this issue?
I've attempted multiple methods to establish the connection without success.
UPDATE:
This is an excerpt from my urls.py file:
from django.urls import path
from . import views
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
path('', views.sudoku_board, name='sudoku_board'),
]
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
And here is my setting.py file:
STATIC_URL = '/static/css/'