Skip to content

Commit

Permalink
refactor: inable static endpoint only with FS media storage
Browse files Browse the repository at this point in the history
  • Loading branch information
pirhoo committed Jan 18, 2024
1 parent e0ff060 commit e868334
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions prophecies/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,6 @@

if settings.DEBUG:
urlpatterns = urlpatterns + [path('__debug__/', include(debug_toolbar.urls)), ]

if settings.MEDIA_STORAGE == 'FS':
urlpatterns = urlpatterns + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

0 comments on commit e868334

Please sign in to comment.