File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3737# Application definition
3838
3939INSTALLED_APPS = [
40+ 'whitenoise.runserver_nostatic' ,
4041 'jazzmin' ,
4142 'django.contrib.admin' ,
4243 'django.contrib.auth' ,
5859]
5960
6061MIDDLEWARE = [
62+ 'whitenoise.middleware.WhiteNoiseMiddleware' ,
6163 'django.middleware.security.SecurityMiddleware' ,
6264 'django.contrib.sessions.middleware.SessionMiddleware' ,
6365 "corsheaders.middleware.CorsMiddleware" ,
195197# STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
196198
197199
198- STATIC_URL = 'static/'
200+ STATIC_URL = '/ static/'
199201
200202# STATIC_ROOT is for `collectstatic` and should be separate from STATICFILES_DIRS
201203STATIC_ROOT = BASE_DIR / "staticfiles" # Change this to a different directory
Original file line number Diff line number Diff line change @@ -8,11 +8,12 @@ dj_database_url
88# psycopg2==2.9.10
99psycopg2-binary == 2.9.10
1010django-jazzmin
11- # whitenoise==6.8.2
1211django-import-export
1312django-debug-toolbar
1413apscheduler
1514requests
1615django-redis
1716pandas
18- django-widget-tweaks
17+ django-widget-tweaks
18+ whitenoise
19+ waitress
You can’t perform that action at this time.
0 commit comments