Skip to content

Commit

Permalink
Bugfix static url
Browse files Browse the repository at this point in the history
  • Loading branch information
DEENUU1 committed Dec 23, 2023
1 parent 688ab7f commit a26f239
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions fjob/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,10 @@
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/4.2/howto/static-files/


STATIC_URL = '/static/'
if WORKING_MODE == "prod":
STATIC_URL = f'https://{AWS_STORAGE_BUCKET_NAME}.s3.amazonaws.com/'
else:
STATIC_URL = '/static/'
MEDIA_URL = "/media/"
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
MEDIA_ROOT = os.path.join(BASE_DIR, "media")
Expand Down

0 comments on commit a26f239

Please sign in to comment.