Skip to content

Commit

Permalink
STATIC_HOST + STATIC_URL (#30)
Browse files Browse the repository at this point in the history
* Working on a landing page.

* Update STATIC_URL to get it from env

* Try using STATIC_HOST as well.

* STATIC_HOST + STATIC_URL
  • Loading branch information
Kraust authored May 10, 2024
1 parent ce0726d commit f2320df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OSCR_django/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/4.2/howto/static-files/
STATIC_HOST = os.environ.get("STATIC_HOST", "")
STATIC_URL = os.environ.get("STATIC_URL", "static/")
STATIC_URL = STATIC_HOST + os.environ.get("STATIC_URL", "static/")

# Default primary key field type
# https://docs.djangoproject.com/en/4.2/ref/settings/#default-auto-field
Expand Down

0 comments on commit f2320df

Please sign in to comment.