reverend
c5dfb4f926
commit4c5a5fee8d
Author: reverend <reverend@reverend2048.de> Date: Sun Dec 18 09:24:15 2022 +0100 commit17647bf4b7
Author: reverend <reverend@reverend2048.de> Date: Sun Dec 18 09:23:36 2022 +0100 commit4deeb3d773
Author: reverend <reverend@reverend2048.de> Date: Sun Dec 18 09:23:06 2022 +0100 commit5342e62bcb
Author: reverend <reverend@reverend2048.de> Date: Sun Dec 18 09:22:44 2022 +0100 commit02512c1677
Author: reverend <reverend@reverend2048.de> Date: Sun Dec 18 09:21:57 2022 +0100
19 lines
441 B
Python
19 lines
441 B
Python
from django.urls import path
|
|
from django.conf import settings
|
|
from django.conf.urls.static import static
|
|
|
|
from .views import (
|
|
ImageUploadView,
|
|
PublicImageListView
|
|
)
|
|
|
|
urlpatterns = [
|
|
path('', PublicImageListView.as_view(), name='home'),
|
|
path('upload/', ImageUploadView.as_view(), name='upload_image')
|
|
]
|
|
|
|
if settings.DEBUG:
|
|
urlpatterns += static(
|
|
settings.MEDIA_URL,
|
|
document_root=settings.MEDIA_ROOT
|
|
) |