File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 2020
2121# Add geodjango directory to sys.path so 'world' app can be imported
2222sys .path .insert (0 , os .path .join (BASE_DIR , "geodjango" ))
23- STATICFILES_DIRS = [
24- BASE_DIR / "geodjango" / "static" ,
25- ]
23+
2624env = environ .Env ()
2725environ .Env .read_env (os .path .join (BASE_DIR , ".env" ))
2826
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
137137AWS_ACCESS_KEY_ID = env ("MINIO_ROOT_USER" )
138138AWS_SECRET_ACCESS_KEY = env ("MINIO_ROOT_PASSWORD" )
You can’t perform that action at this time.
0 commit comments