diff --git a/backend/investmentportfolio/settings.py b/backend/investmentportfolio/settings.py index 41d6820..07f7438 100644 --- a/backend/investmentportfolio/settings.py +++ b/backend/investmentportfolio/settings.py @@ -45,11 +45,10 @@ MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware', + 'white_noise.middleware.WhiteNoiseMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', - 'corsheaders.middleware.CorsMiddleware', - 'django.middleware.common.CommonMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', @@ -122,6 +121,10 @@ # https://docs.djangoproject.com/en/4.2/howto/static-files/ STATIC_URL = 'static/' +STATIC_ROOT = BASE_DIR / 'staticfiles' +STATIC_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage' + + # Default primary key field type # https://docs.djangoproject.com/en/4.2/ref/settings/#default-auto-field diff --git a/backend/requirements.txt b/backend/requirements.txt new file mode 100644 index 0000000..b147bcf --- /dev/null +++ b/backend/requirements.txt @@ -0,0 +1,43 @@ +appdirs==1.4.4 +asgiref==3.7.2 +backports.zoneinfo==0.2.1 +beautifulsoup4==4.12.2 +certifi==2020.11.8 +chardet==3.0.4 +charset-normalizer==3.3.2 +cycler==0.10.0 +Django==4.2.7 +django-cors-headers==4.3.1 +djangorestframework==3.14.0 +frozendict==2.3.8 +holidays==0.38 +html5lib==1.1 +idna==2.10 +kiwisolver==1.3.1 +lxml==4.9.3 +matplotlib==3.3.2 +multitasking==0.0.11 +numpy==1.24.4 +packaging==23.2 +panda==0.3.1 +pandas==2.0.3 +peewee==3.17.0 +Pillow==8.0.1 +plotly==4.12.0 +psycopg2==2.9.9 +psycopg2-binary==2.9.9 +pyparsing==2.4.7 +pytesseract==0.3.10 +python-dateutil==2.8.2 +pytz==2023.3.post1 +requests==2.31.0 +retrying==1.3.3 +six==1.15.0 +soupsieve==2.5 +sqlparse==0.4.4 +typing_extensions==4.8.0 +tzdata==2023.3 +urllib3==1.26.2 +webencodings==0.5.1 +whitenoise==6.6.0 +yfinance==0.2.32