Skip to content

Commit 98b96c5

Browse files
committed
fix:staticが認識されない
1 parent 6dd630d commit 98b96c5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

config/settings.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
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-
23+
STATICFILES_DIRS = [
24+
BASE_DIR / "geodjango" / "static",
25+
]
2426
env = environ.Env()
2527
environ.Env.read_env(os.path.join(BASE_DIR, ".env"))
2628

config/urls.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@
2424
path('', map_page, name='index'), # Serve map on the root page
2525
path('health/', views.health, name='health'),
2626
path('maps/', include('world.urls')),
27+
path("", include("pwa.urls")),
2728
]

0 commit comments

Comments
 (0)