estelam ticket, varizha , others
This commit is contained in:
1 parent
35a1ec1794
commit
6b546aad76
71 files changed
+2865
-191
No files matched your search
+1
-1
@@ -67,7 +67,7 @@ urlpatterns = [
|
||||
|
||||
def debug_media(request, path):
|
||||
import posixpath
|
||||
if posixpath.normpath(path.replace("\\", "/")).lstrip("/").startswith("payments/"):
|
||||
if posixpath.normpath(path.replace("\\", "/")).lstrip("/").startswith(("payments/", "dispatch-responses/")):
|
||||
from django.http import Http404
|
||||
raise Http404
|
||||
return serve(request, path, document_root=settings.MEDIA_ROOT)
|
||||
|
||||
Reference in new issue
Block a user