2021-01-24 15:43:51 +01:00
|
|
|
from django.conf import settings
|
|
|
|
from django.conf.urls.static import static
|
2021-01-24 12:42:24 +01:00
|
|
|
from django.urls import path
|
|
|
|
|
2021-01-24 16:01:36 +01:00
|
|
|
from pictures.views import MessageDetailView, MessageListView
|
2021-01-24 15:43:51 +01:00
|
|
|
|
2021-01-24 12:42:24 +01:00
|
|
|
urlpatterns = [
|
2021-01-24 15:43:51 +01:00
|
|
|
path("", MessageListView.as_view(), name="messages-list"),
|
2021-01-24 16:01:36 +01:00
|
|
|
path("<int:pk>/", MessageDetailView.as_view(), name="messages-detail"),
|
2021-01-24 15:43:51 +01:00
|
|
|
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|