Skip to content

Commit abc63af

Browse files
committed
fix:
1 parent 98b96c5 commit abc63af

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

config/settings.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@
2020

2121
# Add geodjango directory to sys.path so 'world' app can be imported
2222
sys.path.insert(0, os.path.join(BASE_DIR, "geodjango"))
23-
STATICFILES_DIRS = [
24-
BASE_DIR / "geodjango" / "static",
25-
]
23+
2624
env = environ.Env()
2725
environ.Env.read_env(os.path.join(BASE_DIR, ".env"))
2826

@@ -130,9 +128,11 @@
130128
# Static files (CSS, JavaScript, Images)
131129
# https://docs.djangoproject.com/en/6.0/howto/static-files/
132130

133-
STATIC_URL = "static/"
134-
STATIC_ROOT = BASE_DIR / "staticfiles"
135-
131+
STATIC_URL = "/static/"
132+
STATIC_ROOT = BASE_DIR /"geodjango"/ "statics" / "staticfiles"
133+
STATICFILES_DIRS = [
134+
BASE_DIR / "geodjango" / "static",
135+
]
136136
# MinIO
137137
AWS_ACCESS_KEY_ID = env("MINIO_ROOT_USER")
138138
AWS_SECRET_ACCESS_KEY = env("MINIO_ROOT_PASSWORD")

0 commit comments

Comments
 (0)