Updated main url

parent d13df39c
......@@ -16,6 +16,9 @@ Including another URLconf
from django.contrib import admin
from django.urls import include, path
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
path('homepage/', include('homepage.urls', namespace="homepage")),
path('forum/', include('forum.urls', namespace="forum")),
......@@ -23,3 +26,6 @@ urlpatterns = [
path('announcements/', include('announcements.urls', namespace="announcements")),
path('admin/', admin.site.urls),
]
if settings.DEBUG:
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
\ No newline at end of file
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