File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 17
17
18
18
# Application definition
19
19
INSTALLED_APPS = [
20
+ "servestatic.runserver_nostatic" ,
20
21
"daphne" , # Overrides `runserver` command with an ASGI server
21
22
"django.contrib.admin" ,
22
23
"django.contrib.auth" ,
144
145
145
146
# ReactPy-Django Settings
146
147
REACTPY_BACKHAUL_THREAD = any (sys .argv [0 ].endswith (webserver_name ) for webserver_name in ["hypercorn" , "uvicorn" ])
148
+
149
+ # ServeStatic Settings
150
+ SERVESTATIC_USE_FINDERS = True
151
+ SERVESTATIC_AUTOREFRESH = True
Original file line number Diff line number Diff line change 17
17
18
18
# Application definition
19
19
INSTALLED_APPS = [
20
+ "servestatic.runserver_nostatic" ,
20
21
"daphne" , # Overrides `runserver` command with an ASGI server
21
22
"django.contrib.admin" ,
22
23
"django.contrib.auth" ,
130
131
131
132
# ReactPy-Django Settings
132
133
REACTPY_BACKHAUL_THREAD = any (sys .argv [0 ].endswith (webserver_name ) for webserver_name in ["hypercorn" , "uvicorn" ])
134
+
135
+ # ServeStatic Settings
136
+ SERVESTATIC_USE_FINDERS = True
137
+ SERVESTATIC_AUTOREFRESH = True
You can’t perform that action at this time.
0 commit comments