From 2b747bc4af1e3689450d8de3cafeb474d960033d Mon Sep 17 00:00:00 2001 From: Giovanni B Date: Thu, 21 Oct 2021 16:35:56 +0100 Subject: [PATCH] Fixes #113 (#115) * Fixes #113 * Update tox.ini Co-authored-by: Jannis Leidel Co-authored-by: Jannis Leidel --- .gitignore | 3 +++ dbtemplates/management/commands/sync_templates.py | 2 +- tox.ini | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 58950d1..66275b7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ +.* +!.gitignore +!.coveragerc *.pyc .*.swp MANIFEST diff --git a/dbtemplates/management/commands/sync_templates.py b/dbtemplates/management/commands/sync_templates.py index cd65be3..269cc15 100644 --- a/dbtemplates/management/commands/sync_templates.py +++ b/dbtemplates/management/commands/sync_templates.py @@ -72,7 +72,7 @@ class Command(BaseCommand): for f in [f for f in filenames if f.endswith(extension) and not f.startswith(".")]: path = os.path.join(dirpath, f) - name = path.split(templatedir)[1] + name = path.split(str(templatedir))[1] if name.startswith('/'): name = name[1:] try: diff --git a/tox.ini b/tox.ini index 4e324c5..ae6d32e 100644 --- a/tox.ini +++ b/tox.ini @@ -7,6 +7,7 @@ envlist = py{35,36}-dj111 py{35,36,37}-dj21 py{35,36,37,38,39}-dj22 + py{36,37,38,39}-dj{30,31} [gh-actions] python = @@ -32,6 +33,8 @@ deps = dj20: Django<2.1 dj21: Django<2.2 dj22: Django<2.3 + dj30: Django<3.1 + dj31: Django<3.2 djmain: https://github.com/django/django/archive/main.tar.gz#egg=django commands =