Fix static files location

This commit is contained in:
Daoud Clarke 2023-10-28 18:23:46 +01:00
parent 372d780da7
commit 03293384aa
3 changed files with 4 additions and 1 deletions

View file

@ -104,7 +104,6 @@ USE_TZ = True
# https://docs.djangoproject.com/en/4.2/howto/static-files/
STATIC_URL = 'static/'
STATICFILES_DIRS = [str(Path(__file__).parent.parent / "front-end" / "dist")]
# Default primary key field type
# https://docs.djangoproject.com/en/4.2/ref/settings/#default-auto-field

View file

@ -13,6 +13,9 @@ DATABASES = {
}
STATICFILES_DIRS = [str(Path(__file__).parent.parent / "front-end" / "dist")]
DEBUG = True
ALLOWED_HOSTS = ["localhost", "127.0.0.1"]

View file

@ -9,6 +9,7 @@ SECRET_KEY = os.environ["DJANGO_SECRET_KEY"]
STATIC_ROOT = "/app/static/"
STATICFILES_DIRS = ["/front-end-build/"]
DATABASES = {'default': dj_database_url.config(default=os.environ["DATABASE_URL"])}