Commit 675cd13f authored by Star Neptune R. Sy's avatar Star Neptune R. Sy

got the css file to link up

parent 4530a0fb
body {
background-color:rgb(109, 37, 151)
}
\ No newline at end of file
{% load static %}
<head> <head>
<link rel="stylesheet" href="templates/makeItBeautiful.css"> <link rel="stylesheet" href="{% static '/makeItBeautiful.css' %}">
<title>{% block webTitle %}{% endblock %}</title> <title>{% block webTitle %}{% endblock %}</title>
</head> </head>
......
from django.urls import path from django.urls import path
from .views import homeAssignmentsPage, AssignmentsDetailView, AssignmentsUpdateView, AssignmentsCreateView from .views import homeAssignmentsPage, AssignmentsDetailView, AssignmentsUpdateView, AssignmentsCreateView
urlpatterns = [ urlpatterns = [
path('', homeAssignmentsPage, name='homePage'), path('', homeAssignmentsPage, name='homePage'),
path('add/', AssignmentsCreateView.as_view(), name='assignment_add'), path('add/', AssignmentsCreateView.as_view(), name='assignment_add'),
......
...@@ -126,6 +126,7 @@ USE_TZ = True ...@@ -126,6 +126,7 @@ USE_TZ = True
# https://docs.djangoproject.com/en/3.2/howto/static-files/ # https://docs.djangoproject.com/en/3.2/howto/static-files/
STATIC_URL = '/static/' STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
# Default primary key field type # Default primary key field type
# https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field # https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment