This commit is contained in:
some weird guy
2023-08-29 11:56:34 -07:00
parent 7909335304
commit f381d1d1af
14 changed files with 88 additions and 77 deletions
+4 -4
View File
@@ -1,10 +1,10 @@
from django.conf.urls import url, re_path
from django.conf.urls.static import static
from django.views.static import serve
from django.shortcuts import redirect
#from django.conf.urls.static import static
#from django.shortcuts import redirect
from . import views
from closedverse.settings import MEDIA_URL, MEDIA_ROOT
from django.conf import settings
username = r'(?P<username>[A-Za-z0-9-\'-._ ]+)'
community = r'(?P<community>[0-9]+)'
@@ -113,4 +113,4 @@ urlpatterns = [
]
# + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
# serve static and media i think???? mighTTT???????
urlpatterns += [re_path(r'^i/(?P<path>.*)$', serve, {'document_root': MEDIA_ROOT, }), ]
urlpatterns += [re_path(r'^media/(?P<path>.*)$', serve, {'document_root': settings.MEDIA_ROOT, }), ]