diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index a463065..e3ff912 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -32,6 +32,12 @@ jobs: cd myproject pip install -r requirements.txt + - name: Apply Migrations + run: | + cd myproject + python manage.py makemigrations + python manage.py migrate + - name: Run Django test run: | cd myproject diff --git a/.github/workflows/django.yml b/.github/workflows/django.yml index b0c9df7..7dc6278 100644 --- a/.github/workflows/django.yml +++ b/.github/workflows/django.yml @@ -31,6 +31,12 @@ jobs: cd myproject pip install -r requirements.txt + - name: Apply Migrations + run: | + cd myproject + python manage.py makemigrations + python manage.py migrate + - name: Run Django test run: | cd myproject diff --git a/myproject/myproject/settings.py b/myproject/myproject/settings.py index e5aeb0d..b8eac07 100644 --- a/myproject/myproject/settings.py +++ b/myproject/myproject/settings.py @@ -92,10 +92,10 @@ # https://docs.djangoproject.com/en/5.0/ref/settings/#databases DATABASES = { - # 'default': { - # 'ENGINE': 'django.db.backends.sqlite3', - # 'NAME': BASE_DIR / 'db.sqlite3', - # } + 'default': { + 'ENGINE': 'django.db.backends.sqlite3', + 'NAME': BASE_DIR / 'db.sqlite3', + } } # Password validation diff --git a/myproject/requirements.txt b/myproject/requirements.txt index cd74fb9..d769627 100644 --- a/myproject/requirements.txt +++ b/myproject/requirements.txt @@ -2,8 +2,9 @@ asgiref==3.7.2 beautifulsoup4==4.12.3 certifi==2024.7.4 charset-normalizer==3.3.2 -Django==4.2.16 +Django==5.0.9 django-bootstrap5==23.4 +gunicorn==23.0.0 idna==3.7 python-dotenv==1.0.1 pyuca==1.2