Skip to content

Commit

Permalink
Merge pull request #71 from kamilturek/django30
Browse files Browse the repository at this point in the history
Support for Django 3.0
  • Loading branch information
abhijeet-1110 authored Dec 3, 2021
2 parents b8da60b + 69215bb commit 15d3f70
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Django-mfa(Multi-factor Authentication) is a simple django package to add extra

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.

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/)
This Package is compatible with the following Django versions: 2.2, 3.0, 3.1, 3.2. Documentation is available at readthedocs(http://django-mfa.readthedocs.io/en/latest/)

Quick start
-----------
Expand Down
2 changes: 1 addition & 1 deletion django_mfa/templates/django_mfa/base.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
{% load staticfiles %}
{% load static %}
<html lang="en">
<head>
<meta charset="utf-8">
Expand Down
2 changes: 1 addition & 1 deletion django_mfa/templates/u2f/base.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% extends base_template|default:"u2f_base.html" %}
{% load staticfiles %}
{% load static %}
{% load i18n %}
{% block content %}
<script src="{% static 'django_u2f/u2f-api.js' %}"></script>
Expand Down
1 change: 0 additions & 1 deletion django_mfa/templates/u2f_base.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<!DOCTYPE html>
{% load staticfiles %}
{% load static %}
<html lang="en" >
<head>
Expand Down
4 changes: 2 additions & 2 deletions docs/installation_setup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ Requirements
~~~~~~~~~~~~

====== ====================
Python >= 2.6 (or Python 3)
Django >= 1.11
Python 3.6, 3.7, 3.8, 3.9, 3.10
Django 2.2, 3.0, 3.1, 3.2
====== ====================

Installation
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Django>=2.2.19
black==20.8b1
-r sandbox/requirements.txt
django-argonauts==1.2.0
python-u2flib-server==5.0.0
3 changes: 1 addition & 2 deletions test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
'django.contrib.staticfiles',
'django_mfa',
'argonauts',
'debug_toolbar',
),
MIDDLEWARE=(
'django.middleware.security.SecurityMiddleware',
Expand All @@ -33,7 +32,6 @@
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'django_mfa.middleware.MfaMiddleware',
'debug_toolbar.middleware.DebugToolbarMiddleware',
),
ROOT_URLCONF='django_mfa.urls',
STATIC_URL='/static/',
Expand All @@ -52,6 +50,7 @@
},
},
],
SECRET_KEY='test_secret_key',
)

django.setup()
Expand Down
11 changes: 11 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[tox]
envlist = py{36,37,38,39,310}-django{22,30,31,32}

[testenv]
deps =
-rrequirements.txt
django22: Django>=2.2,<2.3
django30: Django>=3.0,<3.1
django31: Django>=3.1,<3.2
django32: Django>=3.2,<3.3
commands = python test_runner.py

0 comments on commit 15d3f70

Please sign in to comment.