Skip to content

Commit

Permalink
Upgrade to Django 5
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhiek187 committed Jul 10, 2024
1 parent 86dd4bd commit 82b8cd2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/django.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: [3.9, "3.10", "3.11"]
python-version: ["3.10", "3.11"]

steps:
- uses: actions/checkout@v4
Expand Down
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
asgiref==3.8.1
autopep8==2.3.1
backports.zoneinfo==0.2.1; python_version < "3.9"
certifi==2024.7.4
chardet==5.2.0
charset-normalizer==3.3.2
dj-database-url==2.2.0
Django==4.2.14
Django==5.0.7
gunicorn==22.0.0
idna==3.7
packaging==24.1
psycopg==3.2.1
psycopg-binary==3.2.1
pycodestyle==2.12.0
Expand All @@ -16,6 +16,6 @@ pytz==2024.1
requests==2.32.3
sqlparse==0.5.0
tomli==2.0.1
typing-extensions==4.12.2
typing_extensions==4.12.2
urllib3==2.2.2
whitenoise==6.7.0
5 changes: 4 additions & 1 deletion stockhelper/stockapp/templates/stockapp/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@
<!-- Don't position the dropdown menu beyond the screen for large displays -->
<ul class="dropdown-list dropdown-menu dropdown-menu-lg-end" aria-labelledby="navbarDropdown">
<li>
<a class="dropdown-item" href="{% url 'logout' %}">Logout</a>
<form method="post" action="{% url 'logout' %}">
{% csrf_token %}
<button type="submit" class="dropdown-item">Logout</button>
</form>
</li>
<li>
<a class="dropdown-item" href="{% url 'password_change' %}">Change Password</a>
Expand Down

0 comments on commit 82b8cd2

Please sign in to comment.