From db2a72d2129415ce85058d0628d426f7f91e3554 Mon Sep 17 00:00:00 2001 From: Simon Hanna Date: Thu, 31 Oct 2024 17:29:15 +0100 Subject: [PATCH] Update requirements --- deploy/settings.py | 1 + requirements.txt | 7 +++++++ settings.py | 3 ++- setup.py | 6 +++--- 4 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 requirements.txt diff --git a/deploy/settings.py b/deploy/settings.py index 02423aff..b4ebb6e6 100644 --- a/deploy/settings.py +++ b/deploy/settings.py @@ -63,6 +63,7 @@ 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', + 'allauth.account.middleware.AccountMiddleware', ] ROOT_URLCONF = 'urls' diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 00000000..202e2807 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,7 @@ +Django>=5.1.2 +django-allauth>=65.1.0 +django-cors-headers>=4.6.0 +django-widgets-improved>=1.5.0 +djangorestframework>=3.15.2 +python-dateutil>=2.9.0.post0 +pytz>=2024.2 diff --git a/settings.py b/settings.py index 69cff26b..99b6b7fe 100644 --- a/settings.py +++ b/settings.py @@ -13,7 +13,7 @@ import os # Build paths inside the project like this: os.path.join(BASE_DIR, ...) -BASE_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'data') +BASE_DIR = os.path.dirname(os.path.abspath(__file__)) # Quick-start development settings - unsuitable for production @@ -60,6 +60,7 @@ 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', + 'allauth.account.middleware.AccountMiddleware', ] CORS_ORIGIN_WHITELIST = ( diff --git a/setup.py b/setup.py index 1a78c9c0..5796f777 100644 --- a/setup.py +++ b/setup.py @@ -29,13 +29,13 @@ def get_version(): packages=['silverstrike'], include_package_data=True, install_requires=[ - 'django>=4.1', + 'django>=5.1', 'djangorestframework>=3.12', 'django-widgets-improved', - 'django-allauth>=0.40', + 'django-allauth>=65.1', 'python-dateutil', 'pytz', - 'django-cors-headers>=3.5', + 'django-cors-headers>=4.6', ], extras_require={ 'OFX Importing': ['ofxparse'],