Размер видео: 1280 X 720853 X 480640 X 360
Показать панель управления
Автовоспроизведение
Автоповтор
from django.contrib import adminfrom django.urls import path, include, re_pathfrom django.conf import settingsfrom django.conf.urls.static import staticfrom django.contrib.staticfiles.urls import staticfiles_urlpatterns # newfrom django.conf import settingsfrom django.views.static import serveurlpatterns = [ re_path(r'^media/(?P.*)$', serve, {'document_root': settings.MEDIA_ROOT}), re_path(r'^static/(?P.*)$', serve, {'document_root': settings.STATIC_ROOT}), ]
congratulations Brother you got a new subscriber. Thank you so much it's work
aapne prompt kiya dala tha chatgpt per
is this a secure approach ?
yes it is
from django.contrib import admin
from django.urls import path, include, re_path
from django.conf import settings
from django.conf.urls.static import static
from django.contrib.staticfiles.urls import staticfiles_urlpatterns # new
from django.conf import settings
from django.views.static import serve
urlpatterns = [
re_path(r'^media/(?P.*)$', serve, {'document_root': settings.MEDIA_ROOT}),
re_path(r'^static/(?P.*)$', serve, {'document_root': settings.STATIC_ROOT}), ]
congratulations Brother you got a new subscriber.
Thank you so much it's work
aapne prompt kiya dala tha chatgpt per
is this a secure approach ?
yes it is