picture-display/src/pictures/urls.py

10 lines
295 B
Python

from django.conf import settings
from django.conf.urls.static import static
from django.urls import path
from pictures.views import MessageListView
urlpatterns = [
path("", MessageListView.as_view(), name="messages-list"),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)