added serving of static files in development

parent 2e31081f
......@@ -19,6 +19,8 @@ load_dotenv()
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
MEDIA_ROOT = ''
MEDIA_URL = ''
# Quick-start development settings - unsuitable for production
......
......@@ -15,6 +15,8 @@ Including another URLconf
"""
from django.contrib import admin
from django.urls import path, include
from django.conf.urls.static import static
from django.conf import settings
urlpatterns = [
path('homepage/', include("homepage.urls", namespace='homepage')),
......@@ -24,3 +26,5 @@ urlpatterns = [
namespace='announcement_board')),
path('assignments/', include("assignments.urls", namespace='assignments')),
]
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
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