Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit15d3f70

Browse files
Merge pull request#71 from kamilturek/django30
Support for Django 3.0
2 parentsb8da60b +69215bb commit15d3f70

File tree

8 files changed

+19
-10
lines changed

8 files changed

+19
-10
lines changed

‎README.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Django-mfa(Multi-factor Authentication) is a simple django package to add extra
2626

2727
We welcome your feedback on this package. If you run into problems, please raise an issue or contribute to the project by forking the repository and sending some pull requests.
2828

29-
This Package is compatible with Django versions >=1.10 (including at least Django 2.0.7) Documentation is available at readthedocs(http://django-mfa.readthedocs.io/en/latest/)
29+
This Package is compatible withthe followingDjango versions: 2.2, 3.0, 3.1, 3.2. Documentation is available at readthedocs(http://django-mfa.readthedocs.io/en/latest/)
3030

3131
Quick start
3232
-----------

‎django_mfa/templates/django_mfa/base.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
{% loadstaticfiles %}
2+
{% loadstatic %}
33
<htmllang="en">
44
<head>
55
<metacharset="utf-8">

‎django_mfa/templates/u2f/base.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% extends base_template|default:"u2f_base.html" %}
2-
{% loadstaticfiles %}
2+
{% loadstatic %}
33
{% load i18n %}
44
{% block content %}
55
<scriptsrc="{% static 'django_u2f/u2f-api.js' %}"></script>

‎django_mfa/templates/u2f_base.html‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<!DOCTYPE html>
2-
{% load staticfiles %}
32
{% load static %}
43
<htmllang="en">
54
<head>

‎docs/installation_setup.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ Requirements
55
~~~~~~~~~~~~
66

77
====== ====================
8-
Python>= 2.6 (or Python 3)
9-
Django>= 1.11
8+
Python3.6, 3.7, 3.8, 3.9, 3.10
9+
Django2.2, 3.0, 3.1, 3.2
1010
====== ====================
1111

1212
Installation

‎requirements.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
Django>=2.2.19
21
black==20.8b1
3-
-rsandbox/requirements.txt
2+
django-argonauts==1.2.0
3+
python-u2flib-server==5.0.0

‎test_runner.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
'django.contrib.staticfiles',
2323
'django_mfa',
2424
'argonauts',
25-
'debug_toolbar',
2625
),
2726
MIDDLEWARE=(
2827
'django.middleware.security.SecurityMiddleware',
@@ -33,7 +32,6 @@
3332
'django.contrib.messages.middleware.MessageMiddleware',
3433
'django.middleware.clickjacking.XFrameOptionsMiddleware',
3534
'django_mfa.middleware.MfaMiddleware',
36-
'debug_toolbar.middleware.DebugToolbarMiddleware',
3735
),
3836
ROOT_URLCONF='django_mfa.urls',
3937
STATIC_URL='/static/',
@@ -52,6 +50,7 @@
5250
},
5351
},
5452
],
53+
SECRET_KEY='test_secret_key',
5554
)
5655

5756
django.setup()

‎tox.ini‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[tox]
2+
envlist = py{36,37,38,39,310}-django{22,30,31,32}
3+
4+
[testenv]
5+
deps =
6+
-rrequirements.txt
7+
django22: Django>=2.2,<2.3
8+
django30: Django>=3.0,<3.1
9+
django31: Django>=3.1,<3.2
10+
django32: Django>=3.2,<3.3
11+
commands = python test_runner.py

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp