Skip to content

Commit

Permalink
refactor: Lint the using black
Browse files Browse the repository at this point in the history
  • Loading branch information
unna97 committed Aug 11, 2024
1 parent fb3b28e commit cb0f5c5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion waveform_audio/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,9 @@

MEDIA_URL = "/media/" # this is the url to the media folder

MEDIA_ROOT = os.environ.get('MEDIA_ROOT', os.path.join(BASE_DIR,"waveform_audio", "static", "media"))
MEDIA_ROOT = os.environ.get(
"MEDIA_ROOT", os.path.join(BASE_DIR, "waveform_audio", "static", "media")
)


# Static root:
Expand Down
6 changes: 4 additions & 2 deletions waveform_audio/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@
),
# API urls:
path("api/", include(("api.urls", "api")), name="api"),
]
]

if settings.DEBUG:
urlpatterns = urlpatterns + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
urlpatterns = urlpatterns + static(
settings.MEDIA_URL, document_root=settings.MEDIA_ROOT
)

0 comments on commit cb0f5c5

Please sign in to comment.