Make STATIC_URL configurable from env

This commit is contained in:
Michael Derynck 2022-08-15 12:08:53 -06:00
parent 2de3d5793f
commit 0221ce612a
2 changed files with 1 additions and 2 deletions

View file

@ -238,7 +238,7 @@ USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/2.1/howto/static-files/
STATIC_URL = "/static/"
STATIC_URL = os.environ.get("STATIC_URL", "/static/")
STATIC_ROOT = "./static/"
CELERY_BROKER_URL = "amqp://rabbitmq:rabbitmq@localhost:5672"

View file

@ -53,7 +53,6 @@ STATICFILES_DIRS = [
"/etc/app/static",
]
STATIC_ROOT = "./collected_static/"
STATIC_URL = "/static/"
DEBUG = False