From 8bf5d6fee2ff0042e8b3774cc2a11a58d5a27ecb Mon Sep 17 00:00:00 2001 From: Yuta Matsumura Date: Sun, 24 Sep 2023 01:12:13 +0900 Subject: [PATCH] update django --- .github/workflows/python-django.yml | 6 +++--- python/django/README.md | 6 ++++++ python/django/requirements.txt | 5 ++++- 3 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 python/django/README.md diff --git a/.github/workflows/python-django.yml b/.github/workflows/python-django.yml index 86fc3d5..9d24e19 100644 --- a/.github/workflows/python-django.yml +++ b/.github/workflows/python-django.yml @@ -8,7 +8,7 @@ on: workflow_dispatch: env: - PYTHON_VERSION: '3.7' + PYTHON_VERSION: '3.11' WORKING_DIRECTORY: python/django jobs: @@ -20,10 +20,10 @@ jobs: working-directory: ${{ env.WORKING_DIRECTORY }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python version - uses: actions/setup-python@v1 + uses: actions/setup-python@v4 with: python-version: ${{ env.PYTHON_VERSION }} diff --git a/python/django/README.md b/python/django/README.md new file mode 100644 index 0000000..faa19d5 --- /dev/null +++ b/python/django/README.md @@ -0,0 +1,6 @@ +# Django + +```sh +pip install -r requirements.txt +python manage.py runserver +``` diff --git a/python/django/requirements.txt b/python/django/requirements.txt index eb98023..da87d5f 100644 --- a/python/django/requirements.txt +++ b/python/django/requirements.txt @@ -1 +1,4 @@ -Django>=3.0,<=3.1 +asgiref==3.7.2 +Django==4.2.5 +pytz==2023.3.post1 +sqlparse==0.4.4